Vidyalelo
C Programming · Q235

Pointer

Programming · C Programming · question 235

Q235

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

A.
hello
Answer
B.
Run time error
C.
Nothing
D.
h

Answer: Option A

Solution

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