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
When should structures be passed by values or by references?
What is the difference between c &c++?
What is a void pointer in c?
Disadvantages of C language.
Is it better to bitshift a value than to multiply by 2?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Explain union.
What do header files do?
What are keywords c?
What are the c keywords?
What do you mean by Recursion Function?
Why do we use namespace feature?
What is return in c programming?
What is the meaning of 2d in c?
What is assert and when would I use it?