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

because there us no break statement after case

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between the expression '++a' and 'a++'?

623


What are different storage class specifiers in c?

611


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

620


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

654


What is the best way of making my program efficient?

561






How many keywords are there in c?

586


What is the right type to use for boolean values in c? Is there a standard type?

559


What is c method?

532


Why functions are used in c?

580


Should I learn c before c++?

599


Why are algorithms important in c program?

615


What is scope of variable in c?

557


how to find binary of number?

3421


What is the scope of global variable in c?

551


How is pointer initialized in c?

581