0
what is output for this code?don't mention the header file r some thing just answer for concept of postfix and prefix
int a=10,b; b=++a+a+++++a+a++; cout<<b; cout<<a;
9 ответов
+ 2
Yoy dont need return 0 in the main function in modern compilers. The return statement is implied.
+ 1
Compiler error
+ 1
And main() is INT. Also, you have no return 0; or using namespace std;.
0
answer is
48 14
becoz 10 will change as 12 due to prsence of two prefix then a value is reflected as 12 so 12×4=48 then the value of a is 14 becoz of increment of postfix after the code is ended i.e after semicolon
0
this is meaningless.
0
how u saying why
0
this concept in my 12 th std book
- 1
how
- 3
those who know answer for this r well know the concept of postfix and prefix