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 the output of the statements? 
int i = 1, j;
j = i-- - -2;
printf("%d", j);






Solution

i-- uses the old value 1, then i becomes 0. Expression is 1 - (-2) = 3.


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