+ 1

plzz answer with Gudd explanation i=5; cout<< --i <<endl;

25th Jul 2016, 4:42 AM
sagar
sagar - avatar
3 odpowiedzi
+ 1
4
25th Jul 2016, 12:52 PM
Subramanian Thiagarajan
Subramanian Thiagarajan - avatar
0
answer :4 explanation: the cout statement calls for i to be printed but before i is printed it is being told to decrement i.
25th Jul 2016, 4:51 PM
destro
0
In cout statement "--i" will decrement the value of i before printing on output. It is simply called pre-decreament.
26th Jul 2016, 1:05 AM
KAMESH ARAVIND P
KAMESH ARAVIND P - avatar