Interview Question 3575

Created by admin on Sat, 17/11/2012 - 12:42
Explanation: 
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.
Question: 

main()
{
int i=-1; +i;
printf("i = %d, +i = %d \n",i,+i);
}

Language: 
Answer: 

i = -1, +i = -1.