What is the output? char s[] = "DSSSB";
What is the output?
char s[] = "DSSSB";
printf("%d", (int)sizeof(s));
Show answerHide answer
Correct answer: (A) 6
Explanation
5 characters + 1 null terminator = 6 bytes.
Correct answer: (A) 6
Explanation
5 characters + 1 null terminator = 6 bytes.
This is question 130 of DSSSB TGT Computer Science Full Mock Test 1. 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.