Vidyalelo
C Programming · Q175

Pointer

Programming · C Programming · question 175

Q175

What will be the output of the following C code? #include void main() char *s = "hello"; char *p = s; printf("%p %p", p, s);

A.
Different address is printed
B.
Same address is printed
Answer
C.
Run time error
D.
Nothing

Answer: Option B

Solution

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