Home » C Programming » Input & Output » Question
  1. What will be the output of the following C code (when 10 and 20 are entered)?
    #include <stdio.h>
    void main()
    {
    int n1, n2;
    printf("Enter Numbers: ");
    scanf("%d", &n2);
    scanf("%d", &n1);
    printf("%d\t%d\n", n2, n1);
    }
    1. 10 Garbage value
    2. Garbage value 20
    3. Compilation Error
    4. Undefined behaviour
    5. 10 20
Correct Option: E

10 20



Your comments will be displayed only after manual approval.