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 / 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 kind of structure is a house?

1050


How do you determine a file’s attributes?

1095


What is #pragma statements?

1107


Is c easy to learn?

997


What is the difference between fread and fwrite function?

1097


Which one would you prefer - a macro or a function?

1097


How to Throw some light on the splay trees?

1075


How many levels deep can include files be nested?

1150


Define the scope of static variables.

1141


What are header files in c programming?

1143


What are the __date__ and __time__ preprocessor commands?

1128


Why do some versions of toupper act strangely if given an upper-case letter?

1080


What are 'near' and 'far' pointers?

1054


Is there a way to switch on strings?

1100


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1070