Question PRG-C-0012
MediumWhat is the output of this program?
#include <stdio.h>
int main(void) {
char s[] = "hello";
printf("%zu", sizeof(s));
return 0;
}
- A.
5
- B.
8
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What is the output of this program?
#include <stdio.h>
int main(void) {
char s[] = "hello";
printf("%zu", sizeof(s));
return 0;
}
5
8
Sign up free to see the answer and a step-by-step explanation.
6
4