1.

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

A. Whatever user types
B. Runtime Error
C. Garbage value
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs