Discussion :: C-MCQs
-
What is the output of this C code(When 1 is entered)?
void main()
{
char *ch;
printf("enter a value btw 1 to 3:");
scanf("%s", ch);
switch (ch)
{
case "1":
printf("1");
break;
case "2":
printf("2");
break;
}
}
Answer : Option B
Explanation :
none
Be The First To Comment