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. Garbage value
    2. Compilation Error
    3. Runtime Error
    4. Whatever user types
    5. None of these
Correct Option: A

Garbage value



Your comments will be displayed only after manual approval.