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() 
{ 
float x = 5; 
if(x > 10) 
printf("Greater"); 
else if(x = 10) 
printf("Equal"); 
else 
printf("Smaller"); 
return 0; 
}





Solution

Assignment x=10 makes condition true → prints "Equal".


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...