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 / ramprabha
500
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What kind of structure is a house?
How do you determine a file’s attributes?
What is #pragma statements?
Is c easy to learn?
What is the difference between fread and fwrite function?
Which one would you prefer - a macro or a function?
How to Throw some light on the splay trees?
How many levels deep can include files be nested?
Define the scope of static variables.
What are header files in c programming?
What are the __date__ and __time__ preprocessor commands?
Why do some versions of toupper act strangely if given an upper-case letter?
What are 'near' and 'far' pointers?
Is there a way to switch on strings?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions