Шукаєте відповіді та рішення тестів для FM121 Programming and Data Structures? Перегляньте нашу велику колекцію перевірених відповідей для FM121 Programming and Data Structures в dle.plaksha.edu.in.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Consider this code:
Person P1(2);
P1.children_list[0]= "Aryan";
P1.children_list[1]= "Siya";
Person P2 = P1;
P2.children_list[0]= "Ananya";
What will be the content of P1.children_list[0] after this?
Which of the following is FALSE about friend functions?
If a class B is declared as a friend of class A, then:
The operator is commonly overloaded to print object data using cout.
Which of the following cannot be friend?
What happens when you try to execute this code?
int x = 20, z = 30; int &n = x; n = z; // This line
Consider this code sequence:
Wallet w1(100, 50); Wallet w2; w2 = w1; // Line 1 Wallet w3 = w1; // Line 2
Which statement is correct?
const Wallet* const ptr = &myWallet;Student and Faculty both have private member int id. If a Student object tries to access the id of a Faculty object within a Student member function, what happens?