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
Write a program to reverse a string.
What is indirection?
Explain what is the stack?
What is the importance of c in your views?
What is function in c with example?
How do you list files in a directory?
What is sizeof array?
What does do in c?
What is context in c?
Why does not c have an exponentiation operator?
What is identifier in c?
Explain how can a program be made to print the name of a source file where an error occurs?
What are the different types of data structures in c?
What is getch () for?
What are the disadvantages of external storage class?