Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



What will be output of the following code snippet? 
#include int main() 
{ 
int i; 
for (i=1;i<=5;i++) 
{ 
if(i == i) 
continue; 
printf("%d ", i); 
} 
return 0; 
}





Solution

Condition i==i always true → continue always → nothing printed.


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...