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 array_name and &array_name?
What is the usage of the pointer in c?
What is volatile variable in c with example?
What the advantages of using Unions?
Why do we use static in c?
What is #include stdio h?
What is file in c preprocessor?
Is it possible to execute code even after the program exits the main() function?
What is difference between union All statement and Union?
How do you define structure?
What is struct node in c?
Where static variables are stored in memory in c?
which is an algorithm for sorting in a growing Lexicographic order
using only #include
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9