Home / MCQ Bank / Computer
Computer Operators And Expressions In C Plus Plus Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> using namespace std; int main () { int x, y; x = 5; y = ++x * ++x; cout << x << y; x = 5; y = x++ * ++x; cout << x << y; return 0; }

Select the correct option to test your answer:

More Computer Questions

Which of the following property sets the speed at which the voice synthesized by a speech media agent will read content? What is the purpose of the "is" keyword in C#? What will be the output of the following C code? #include <stdio.h> void main() { int x = 5; if (true); printf("hello"); } In balancing parentheses algorithm, the string is read from? Consider the following iterative implementation to find the nth fibonacci number? int main() { int n = 10,i; if(n == 1) printf("0"); else if(n == 2) printf("1"); else { int a = 0, b = 1, c; for(i = 3; i <= n; i++) { c = a + b; ________; ________; } printf("%d",c); } return 0; } Which of the following lines should be added to complete the above code?