Correct Answer: Begins with zero
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C++ Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C++ MCQ Questions
____ consists of 65,536 characters.
________ are c++ operators that change their operands by one.
________ must be included in any program that uses the cout object.
A catch block can have, at most, ____ catch block parameter(s).
A class ____ automatically executes whenever a class object goes out of scope.
Output of the following code? #include using namespace std; class myclass { private: int number; public: myclass() { number = 2; } int &a() { return number; } }; int main() { myclass m1,m2; m1.a() = 5; m2.a() = m1.a(); cout << m2.a(); return 0; }
Which member functions can be used to add an element in an std::vector?
Output of the following code? class A { public: A():pData(0){} ~A(){} int operator ++() { pData++; cout << 'In first '; return pData; } int operator ++(int) { pData++; cout << 'In second '; return pData; } private: int pData; }; void main() { A a; cout << a++; cout << ++a; }
If input and output operations have to be performed on a file, an object of the _______ class should be created.
Answer the question that follows: char **foo; /* Missing code goes here */ for(int i = 0; i < 200; i++) { foo[i] = new char[100]; } Referring to the sample code above, what is the missing line of code?