Vidyalelo
C Programming · Q96

Pointer

Programming · C Programming · question 96

Q96

What will be the output of the following C code? #include int main() char *str = "hello world"; char strary[] = "hello world"; printf("%d %d ", sizeof(str), sizeof(strary)); return 0;

A.
11 11
B.
12 12
C.
4 12
Answer
D.
4 11

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board