What is the output? char *s = "HELLO";
What is the output?
char *s = "HELLO";
printf("%c", *(s + 1));
Show answerHide answer
Correct answer: (B) E
Explanation
*(s + 1) is s[1] = 'E'.
Correct answer: (B) E
Explanation
*(s + 1) is s[1] = 'E'.
This is question 129 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.