A Place for Latest Exam wise Questions, Videos, Previous Year Papers, Study Stuff for MCA Examinations - NIMCET
Previous Year Question (PYQs)
2
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.