1.

What will be the output of the following C code?
#include <stdio.h>
void fun(char *p)
{
p++;
p[3] = 'N';
printf("%c n", *p);
}
void main()
{
char s[] = "WELCOME";
fun(s);
}

A. WELCOME
B. N
C. E
D. Garbage value
E. None of these
Answer» D. Garbage value


Discussion

No Comment Found