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 you avoid including a header more than once?

591


Explain how do you search data in a data file using random access method?

687


What is the difference between exit() and _exit() function?

594


Why n++ execute faster than n+1 ?

1826


can we implement multi-threads in c.

655






What is the right type to use for boolean values in c?

576


What is ctrl c called?

584


How can I recover the file name given an open stream or file descriptor?

588


How can I invoke another program or command and trap its output?

606


What is a structure in c language. how to initialise a structure in c?

597


Can you please explain the difference between syntax vs logical error?

682


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2296


What are operators in c?

575


What is difference between function overloading and operator overloading?

649


What is array of pointers to string?

558