Aspire's Library

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

Previous Year Question (PYQs)



The output of following C language statement is: printf("\nhello" + 3);





Solution

Solution: String: "\nhello" Character positions: 0:'\n' 1:'h' 2:'e' 3:'l' 4:'l' 5:'o' → "\nhello" + 3 points to index 3, i.e., `"llo"` Hence it prints “llo”.


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