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

Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1074


what is event driven software and what is procedural driven software?

2578


Why is it usually a bad idea to use gets()? Suggest a workaround.

1788


For what purpose null pointer used?

1078


What is const and volatile in c?

1050


What is a program?

1266


Is printf a keyword?

1203


Write a program to reverse a string.

1078


What is structure in c definition?

1054


How can you avoid including a header more than once?

986


What happens if header file is included twice?

1152


What is function prototype in c with example?

1085


write a program to find the given number is prime or not

4766


What are the different types of C instructions?

1318


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1110