- 2

Int a=3; Int b=2; b=a++; Cout<<++b;

27th Jul 2017, 2:29 AM
visa
5 Respuestas
+ 10
int a=3; int b=2; b=a++;. //3 cout<<++b;. //4
27th Jul 2017, 4:33 AM
P R
P R - avatar
+ 8
Remember that C++ is case sensitive - 'int' and 'cout' has to be in lowercase.
27th Jul 2017, 3:24 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
the answer is 4. when the plus signs are in front of the variable things are done on the spot if after the variable ...addition is happening on the nezt line...so third line is like: b=a; a=a + 1; 4
27th Jul 2017, 2:50 AM
Vekudin
Vekudin - avatar
+ 1
The answer is 4
27th Jul 2017, 3:32 AM
Aprijal Ghiyas
Aprijal Ghiyas - avatar
0
int a; int b; a = 11; b = a – 1; b = b + a; cout <<b;
8th Feb 2023, 11:15 AM
عُبَد iPhone
En tendencia hoy
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes