0
When a = 3 and b=2; we have a++ =4 , b= a ++ = 4, and now ++b should be 5 or 4 ?
6 Antworten
+ 9
5
+ 7
This is what I understand:
int a = 3, b= 2; //b is two
b = a = 4; //b is four
++b; //b is five
cout << b; //five is outputted
You wouldn't assign a value to an increment operator. b = a++ might be what You were looking for. Tell me if that is what you meant and I will help you.
0
5 because b contains 4 and increment it by 1.
0
this app says ++b = 4
0
int a =3, b = 2;
b= a++;
cout >> ++b;
0
?????