Vidyalelo
C Programming · Q69

Pointer

Programming · C Programming · question 69

Q69

What will be the output of the following C code? #include void f(char *k) k++; k[2] = 'm'; void main() char s[] = "hello"; f(s); printf("%c ", *s);

A.
h
Answer
B.
e
C.
m
D.
o;

Answer: Option A

Solution

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