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

500

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

1073


Differentiate between full, complete & perfect binary trees.

1055


Explain what are the __date__ and __time__ preprocessor commands?

1075


What are the 4 data types?

968


Describe the steps to insert data into a singly linked list.

1023


What is structure in c explain with example?

1094


How can a program be made to print the line number where an error occurs?

1038


What is function prototype?

1059


What is the description for syntax errors?

1099


What is the scope of static variable in c?

947


What is the size of empty structure in c?

1021


write a program to rearrange the array such way that all even elements should come first and next come odd

2226


Can you please compare array with pointer?

1041


How would you rename a function in C?

998


What is the condition that is applied with ?: Operator?

1073