Which of the following statements is NOT true?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. The scope resolution operator (::) can be overloaded like normal operators.
Explanation
The scope resolution operator ::, along with ., .*, ?: and sizeof, cannot be overloaded in C++. The other three statements are true.More Programming Languages and Computer Graphics questions
- The light given off by the phosphor during exposure to the electron beam is known as
- Which of the following statements about pointers in C are TRUE? (A) Pointers can be used to access array elements (B) Pointers can store th…
- Consider the function in C code:Cal(a, b) { if (b != 1) { if (a != 1) { printf("*"); Cal(a/2, b); } else { b = b - 1; Cal(10, b); } } } How…
- Which of the following is the correct way to declare a function pointer in C?
- Consider the following C program:#include<stdio.h> int main() { int x[] = {2,4,6,8,10}; int a, b = 0, *y = x + 4; for (a = 0; a < 5; a++) {…
- Which of the following are TRUE about constructors in C++? (A) A constructor can be overloaded. (B) A constructor does not have a return ty…