What will be the output of the following C code? [code] #include <stdio.h> int main() { short int i; scanf("%*hd",

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        short int i;
        scanf("%*hd", &i);
        printf("%hd", i);
        return 0;
    }
A. Compilation error
B. Somegarbage value
C. Whatever user types
D. Depends on the standard
 

Tìm kiếm

Back
Top