Home » C Programming » Input & Output » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    short int n;
    scanf("%hd", &n);
    printf("%hd", n);
    return 0;
    }
    1. Whatever user types
    2. Compilation Error
    3. Undefined behavior
    4. Runtime Error
    5. None of these
Correct Option: A

Whatever user types



Your comments will be displayed only after manual approval.