Basics on C++ related Questions and Answers - Page 2

Question 12 : Which of the following operator is used with this pointer to access members of a class?
1. .
2. !
3. ->
4. ~
View Answer   Discuss with Members

Question 15 : What is the size of a character type in C and C++?
1. 4 and 1
2. 1 and 4
3. 1 and 1
4. 4 and 4
View Answer   Discuss with Members

Question 17 : Which of the following operator has left to right associativity?
1. Unary operator
2. Logical not
3. Array element access
4. addressof
View Answer   Discuss with Members

Question 18 : Which of the following is the scope resolution operator?
1. .
2. *
3. ::
4. ~
View Answer   Discuss with Members

Question 20 : Which of the following syntax for declaring a variable of struct STRUCT can be used in both C and C++?
1. struct STRUCT S;
2. STRUCT S;
3. Both struct STRUCT S; and STRUCT S;
4. Both C and C++ have different syntax
View Answer   Discuss with Members


View 11 - 20 of 81 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter