Determine Output:
void main()
{
int i = abc(10);
printf("%d", --i);
}
int abc(int i)
{
return(i++);
}
void main()
{
int i = abc(10);
printf("%d", --i);
}
int abc(int i)
{
return(i++);
}
A. 10
B. 9
C. 11
D. None of These
Answer: Option B
Solution(By Examveda Team)
"return(i++)", it will first return i and then increment it. i.e. 10 will be returned.
Join The Discussion
Comments ( 1 )
Related Questions on C Miscellaneous
A. 3 hello
B. Compiler Error
C. Linking error
D. None of these
A. hello 5
B. hello garbage value
C. Error
D. None of These
A. 4..2
B. 2..2
C. 4..4
D. 2..4
wa t is the ans ???? is it 10 or 9 ?