Introduction To C Plus Plus - Study Mode

[#41] Which function is used to write a single character to console in C++?
Correct Answer

(A) cout.put(ch)

[#42] Why this pointer is used?
Correct Answer

(A) To access the members of a class which have the same name as local variables in that scope

[#43] Which of the following is correct about static variables?
Correct Answer

(C) Static data members functions can access only static data members

[#44] Which of the following syntax can be used to use a member of a namespace without including that namespace?
Correct Answer

(A) namespace::member

[#45] Who created C++?
Correct Answer

(A) Bjarne Stroustrup