Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

What will be the values of variables p, q and i at the end of following loop? int p = 5; int q = 18; for(int i=1;i<5;i++) p++; --q;

int p = 5;
int q = 18;
for(int i=1;i&lt;5;i++)
p++;
--q;
 
PREVIOUS NEXT
Tagged: #What #values #variables #int #int
ADD COMMENT
Topic
Name
4+6 =