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 / gollapally

400
500

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a built-in function in C?

797


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

606


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

679


Explain what is meant by 'bit masking'?

644


How do we print only part of a string in c?

587






What does it mean when the linker says that _end is undefined?

635


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1519


Why do we use header files in c?

584


What is the use of printf() and scanf() functions?

635


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

684


What is p in text message?

540


What is a rvalue?

751


What is the use of ?

626


What are the 5 types of inheritance in c ++?

586


How many keywords are there in c?

591