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

500

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I right-justify a string?

618


What is static and volatile in c?

775


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

597


How many types of sorting are there in c?

604


What is volatile variable in c?

654






What is the difference between array_name and &array_name?

774


What is the use of a ā€˜ā€™ character?

582


Write programs for String Reversal & Palindrome check

594


Why is c called c not d or e?

604


write a program to copy the string using switch case?

2395


How do you list files in a directory?

559


What is wrong with this statement? Myname = 'robin';

812


What are loops in c?

545


What does return 1 means in c?

579


Is c compiled or interpreted?

659