?
Determine Output:
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++);
}
Answer & Solution
Correct Answer:
Option
B
"return(i++)", it will first return i and then increment it. i.e. 10 will be returned.
Join the Discussion
Login to post a comment or share your explanation.
Logincoz --i will be printed , value of i is 10 hence --i=9