Friday 15 March 2013

printf("%d..%d");


main()
{
 int i=400,j=300;
 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.



Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment