

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code? (Assuming that we have entered the value 3 in the standard input).#include <stdio.h> int main() { int num; printf("Enter a value between 1 to 2:"); scanf("%d", &num); switch (num) { case 1: printf("Hey... n"); default: printf("Hello... n"); } } |
A. | Runtime Error |
B. | Compilatin Error |
C. | Hey... |
D. | Hello... |
E. | None of these |
Answer» E. None of these | |