Aspire Faculty ID #13669 · Topic: JAMIA MILLIA ISLAMIA MCA 2023 · Just now
JAMIA MILLIA ISLAMIA MCA 2023

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

Previous 10 Questions — JAMIA MILLIA ISLAMIA MCA 2023

Nearest first

Next 10 Questions — JAMIA MILLIA ISLAMIA MCA 2023

Ascending by ID
Ask Your Question or Put Your Review.

loading...