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

the answer will b 500 becoz...when first k = 4 is
executing...the value of j is 400 den thr is no break
statement...so it will continue..nd at the end of the
switch..j will contain or retain.. the value 500

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why should I prototype a function?

1150


hi, which software companys will take,if d candidate's % is jst 55%?

2062


how should functions be apportioned among source files?

1076


Why isn't it being handled properly?

1036


What is header file definition?

1051


Can main () be called recursively?

1087


how to write optimum code to divide a 50 digit number with a 25 digit number??

3233


Are the outer parentheses in return statements really optional?

1079


Write a program for finding factorial of a number.

1050


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1196


Explain main function in c?

1058


What are types of structure?

1082


What's a good way to check for "close enough" floating-point equality?

1123


what is ur strangth & weekness

2368


What is a example of a variable?

974