Examveda

What will be the output of the following C code (when 4 and 5 are entered)?
#include <stdio.h>
void main()
{
    int m, n;
    printf("enter a number");
    scanf("%d", &n);
    scanf("%d", &m);
    printf("%d\t%d\n", n, m);
}

A. Error

B. 4 junkvalue

C. Junkvalue 5

D. 4 5

Answer: Option D


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output