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 / vijay r15
error
Becoz
j=0: j=400: // in these : should be replaced by ;
In case 3; // in this ; should be replaced by :
After correcting this the op is 500 becoz there is no break statement
Ans 500
Dbtfull guys mail to raj.vijay55@gmail.com
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is union and structure in c?
Is fortran still used today?
What is table lookup in c?
what is the structure pointer?
How do you define structure?
What is ctrl c called?
What does d mean?
What is quick sort in c?
Can you return null in c?
What is this infamous null pointer, anyway?
code for quick sort?
What is the difference between single charater constant and string constant?
What is sizeof c?
What are structural members?
difference between native and cross compilers