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 variable declaration and definition in c?
what is different between auto and local static? why should we use local static?
What is the most efficient way to count the number of bits which are set in an integer?
What is the use of ?
What is string in c language?
What is the difference between near, far and huge pointers?
Explain the binary height balanced tree?
Why is sprintf unsafe?
What is function prototype in c language?
Explain how can a program be made to print the name of a source file where an error occurs?
When do we get logical errors?
What is memcpy() function?
List the variables are used for writing doubly linked list program.
What is the difference between the expression “++a” and “a++”?
What is modeling?