Examveda

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

A. hello

B. Run time error

C. Nothing

D. h

Answer: Option A


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer