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 is the output of the C-program? int main(){ int i=0; int x=i++; int y=++i; printf("%d %d", x,y); }





Solution

Solution: The snippet shown misses a declaration of y (outside initialization), so it will not compile. Hence, it gives a compilation error.
Answer: (D) compile error


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