Question PRG-C-0064
HardWhat is the output of this program?
#include <stdio.h>
int main() {
char s[] = "hello";
char *t = "hello";
printf("%zu %zu %d", sizeof(s), sizeof(t) == sizeof(char *), s[5] == '\0');
return 0;
}
- A.
6 0 1
- B.
6 1 1
- C.
Sign up free to see the answer and a step-by-step explanation.