Vidyalelo
C Programming · Q151

Pointer

Programming · C Programming · question 151

Q151

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

A.
l
B.
e
Answer
C.
h
D.
o

Answer: Option B

Solution

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