-
Private Members
How can we access private members of classs?
-
Bottom-Up Approach
Why we follow top down approach in C-language and bottom up approach in C++?Explain in detail.
-
Classes
Why should you generally pass an object of the class to a friend function as a reference parameter?Choose one answer. a. if the friend function changes the values of the data member(s) b. if the friend function will not change the values of the data member(s) c. It is more efficient to pass the object by reference. d. A and B e. A and C
-
Write Object into a File
How will you write object into file using file concepts in C++?
What does this function do:
What does this function do:string f(const string &x) { return x.empty()? x : f(x.substr(1)) + x[0];}What does this piece of code perform:char *a=...., *b=....;while(*b++ = *a++);
Ans