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);
}
#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
Join The Discussion