1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
short int num;
scanf("%h*d", &num);
printf("%hd", h);
return 0;
}

A. Undefined behavior
B. Compilation Error
C. Runtime Error
D. Somegarbage value
E. None of these
Answer» C. Runtime Error


Discussion

No Comment Found

Related MCQs