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

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

Tìm kiếm

Back
Top