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