Thursday, February 14, 2008

Aptitude Question No.11

Aptitude Question No.11

void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer
Compiler Error

Explanation
The expression i+++++i is parsed as i ++ ++ + i which is an illegal combination of operators.

No comments:

2008 Placement papers of Top MNC companies

eXTReMe Tracker