Sail E0 Webinar
Question
What is the output of this program?#include < iostream >using namespace std;int main (){int x, y;x = 5;y = ++x * ++x;cout
Options:
A .  749736
B .  736749
C .  367497
D .  none of the mentioned
Answer: Option A


Because of the precedence the pre-increment and post increment operator, we got the output as 749736.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers