exactly , i am getting two numbers, but issue is with cout<<b where i am getting output 8 with 4 a's and 5 a's. in both the cases i am having...
sir, result for cout<<b is 8 in both the cases. i had written cout<<b<<a; just to see what value 'a' is holding. problem is with b=a+a++ +a++...
#include<iostream.h> #include<conio.h> main() { int a=1; clrscr(); int b=a+a++ +a++ +a++ ; cout<<b<<a; getch(); } output is 8...
:cuss:first code segment: #include<iostream.h> #include<conio.h> main() { int a=1; clrscr(); int b=a+a++ +a++ +a++ ; cout<<b<<a;...
Separate names with a comma.