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 / gouse mohiddin

500

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of using const for declaring constants?

579


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

703


What is the best way to store flag values in a program?

574


Distinguish between actual and formal arguments.

581


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1444






why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

646


How can I insert or delete a line (or record) in the middle of a file?

566


What are the keywords in c?

637


How can I swap two values without using a temporary?

606


Why static is used in c?

614


What is keyword in c?

591


How do I determine whether a character is numeric, alphabetic, and so on?

616


What is the concatenation operator?

601


please explain every phase in the "SDLC" in the dotnet.

2173


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

651