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

500

Is This Answer Correct ?    15 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the facialities provided by you after the selection of the student.

1654


What are the 4 types of programming language?

578


How a string is stored in c?

584


What is a macro in c preprocessor?

624


What is sizeof array?

606






Why static variable is used in c?

548


What is signed and unsigned?

638


How can I convert a number to a string?

604


Why is sprintf unsafe?

613


Why is it important to memset a variable, immediately after allocating memory to it ?

1550


What is #include conio h?

589


How can I delete a file?

626


What is the process of writing the null pointer?

605


What is a macro?

655


How many bytes is a struct in c?

721