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

400

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is c written?

577


Are comments included during the compilation stage and placed in the EXE file as well?

672


Write a program for Overriding.

688


What is the difference between test design and test case design?

1570


What is the use of getchar functions?

676






What is union and structure in c?

618


Write a code to generate divisors of an integer?

642


Why do we use main function?

637


Explain what are preprocessor directives?

629


What is the condition that is applied with ?: Operator?

665


program for reversing a selected line word by word when multiple lines are given without using strrev

1947


What does void main return?

606


What is the difference between abs() and fabs() functions?

607


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1630


Explain which function in c can be used to append a string to another string?

590