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 the use of in c?
How can you determine the maximum value that a numeric variable can hold?
What happens if header file is included twice?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
How can I implement a delay, or time a users response, with sub-second resolution?
What is the code for 3 questions and answer check in VisualBasic.Net?
How the c program is executed?
How does free() know explain how much memory to release?
What is the difference between c and python?
What is c value paradox explain?
What is the use of parallelize in spark?
What is anagram in c?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What do you understand by friend-functions? How are they used?
What is difference between scanf and gets?