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

Linked lists -- can you tell me how to check whether a linked list is circular?

1083


What is the function of volatile in c language?

1125


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1258


What header files do I need in order to define the standard library functions I use?

1056


What are local static variables?

1150


What is scope of variable in c?

1043


What does emoji p mean?

1113


What is difference between class and structure?

1114


What is dynamic dispatch in c++?

1057


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

1054


What is the use of a static variable in c?

1060


Why do we need a structure?

1037


What are the advantages of using Unions?

1116


Why is c so powerful?

1111


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1087