what is the output of the program and explain why??
#include<stdio.h>
void main ( )
{
int k=4,j=0:
switch (k)
{
case 3;
j=300;
case 4:
j=400:
case 5:
j=500;
}
printf (ā%d\nā,j);
}
Answer Posted / ashutosh tiwari
compiler error!
after case 3 there is semicolon & j=400 also ended with
semicolon
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the difference between malloc calloc and realloc in c?
How many types of operator or there in c?
What is the argument of a function in c?
What is the explanation for the dangling pointer in c?
What are the advantages of Macro over function?
What is an example of structure?
What is the use of printf() and scanf() functions?
How can I open files mentioned on the command line, and parse option flags?
What's the right way to use errno?
Differentiate between full, complete & perfect binary trees.
What is variables in c?
What are local static variables?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What is difference between %d and %i in c?
Is c is a low level language?