Identify the output of the following program in C++.
1 #include<stdio.h>
2 int main() {
3 int x = 3;
4. printf("%d %d %d",x, X++, X++);
5 return 0;
6}
Answers
Answered by
0
Answer:
3, 4, 5
Explanation:
it depends on the compiler work!
if it works frm left to right then 3 4 5
if it works from right to keft then 4 5 5.
hope it helps!
Similar questions