R
Q. How many times does the “cout” in line 12 run?
#includeusing namespace std; int main() { int n = 10; for (int i = 0; i < n; i++ ) { n++; continue; cout << n; } return 1; }
The “continue” instruction will never let the “cout” instruction be executed and therefore never executed.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. How C++ compiler does differ between overloaded postfix and prefix operators?
Q. ______ function is used to allocate space for array in memory.
Q. Which of the following is true?
Q. What is the output of this program?
Q. In which type are enums stored by the compiler?
Q. The difference between P and ‘P’ is
Q. What will be the output of the following C++ code? int x = 10; int y = 5; cout << x / y;
Q. Which function is used to read a full line of text in C++?
Q. Which of the following data type is supported in C++ but not in C?
Discusssion
Login to discuss.