ExamVeda
Login
Home
This question belongs to C Program C Miscellaneous
C Miscellaneous
?

Determine Output:
void main()
{
      int i = -1;
      +i;
      printf("i = %d, +i = %d", i, +i);
}

Answer & Solution
Correct Answer: Option C

Unary + is the only dummy operator in C. Where-ever it comes you can just ignore it just because it has no effect in the expressions (hence the name dummy operator).

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.