Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Here is a good puzzle: how do you write a program which produces its own source code as output?

1061


What will be your course of action for a push operation?

1075


How can I remove the trailing spaces from a string?

1046


List some of the static data structures in C?

1171


How do you override a defined macro?

1235


How can I open files mentioned on the command line, and parse option flags?

1038


Why c is called a mid level programming language?

1043


How do you determine a file’s attributes?

1040


What is the benefit of using const for declaring constants?

1009


How do c compilers work?

1076


When the macros gets expanded?

1371


What are the functions to open and close file in c language?

1150


What are the 4 types of organizational structures?

1053


How does #define work?

1036


Why #include is used in c language?

1017