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 following C-program?
#include
int main() { 
const int a=10; 
printf("%d", +a); 
return 0; 
}





Solution

The constant a=10. Unary +a does not increment, it only returns the same value.
So, output = 10.
Answer = (B) 10


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