What is the output of the following code segment? int n = 9; int *p; p=&n; n++; cout << *p+2 << "," << n;
Correct Answer: 12,10
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
Answer the question that follows. class A { public: A() {} ~A() { cout << 'in destructor' << endl; } }; void main() { A a; a.~A(); } How many times will 'in destructor' be output when the above code is compiled and executed?
Consider the following class hierarchy: class Base { } class Derived : public Base { } Which of the following are true?
Sample Code typedef char *monthTable[3]; Referring to the code above, which of the following choices creates two monthTable arrays and initializes one of the two?
Which statement is FALSE with regard to destructors
Answer the question that follows. class X { int i; protected: float f; public: char c; }; class Y : private X { }; Referring to the sample code above, which of the following data members of X are accessible from class Y
A struct variable can be passed as a parameter ____.
A stack can be implemented as either a(n) ____ or a linked structure.
A program that tests a function is called a _____ program.
A program called a(n) ____ combines the object program with the programs from libraries.
A function ____________________ is a function that is not fully coded.