Thursday, February 14, 2008

Aptitude Question No.3

Aptitude Question No.3

main()
{
int i=400,j=300; 21
printf("%d..%d");
}
Answer
400..300

Explanation
printf takes the values of the first two assignments of the program. Any number of printf's may be given. All of them take only the first two values. If more number of assignments given in the program,then printf will take garbage values.

No comments:

2008 Placement papers of Top MNC companies

eXTReMe Tracker