Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    int n;
    scanf("%d", n);
    printf("%d", n);
}

A. Prints the number that was entered

B. Segmentation fault

C. Nothing

D. Varies

Answer: Option C


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output