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 / avinash
because there us no break statement after case
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Here is a good puzzle: how do you write a program which produces its own source code as output?
What will be your course of action for a push operation?
How can I remove the trailing spaces from a string?
List some of the static data structures in C?
How do you override a defined macro?
How can I open files mentioned on the command line, and parse option flags?
Why c is called a mid level programming language?
How do you determine a file’s attributes?
What is the benefit of using const for declaring constants?
How do c compilers work?
When the macros gets expanded?
What are the functions to open and close file in c language?
What are the 4 types of organizational structures?
How does #define work?
Why #include is used in c language?