What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *n;
scanf("%s", n);
return 0;
}
#include <stdio.h>
int main()
{
char *n;
scanf("%s", n);
return 0;
}A. Compilation error
B. Undefined behavior
C. Nothing
D. None of the mentioned
Answer: Option B

Join The Discussion