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 / prashanth
the answer is 500 as break is not mentioned it goes to case
5 from case4 so value of j=500
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Create a simple code fragment that will swap the values of two variables num1 and num2.
Can you define which header file to include at compile time?
Explain how do you convert strings to numbers in c?
What is 02d in c?
What is action and transformation in spark?
Why string is used in c?
What are the string functions? List some string functions available in c.
What does. int *x[](); means ?
What are derived data types in c?
What is strcpy() function?
What is the right type to use for boolean values in c? Is there a standard type?
What is c system32 taskhostw exe?
Why is sizeof () an operator and not a function?
How can you increase the size of a dynamically allocated array?