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

What is pointer to pointer in c with example?

1079


Which is best book for data structures in c?

1093


What does malloc () calloc () realloc () free () do?

1067


Is it possible to pass an entire structure to functions?

998


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1171


How can you increase the size of a statically allocated array?

1081


Why is c not oop?

980


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1107


What is hashing in c?

1165


Why is c still so popular?

1050


Difference between linking and loading?

1116


What is actual argument?

1066


Explain what is the general form of a c program?

1099


Why is C language being considered a middle level language?

1130


I heard that you have to include stdio.h before calling printf. Why?

1071