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

Define Spanning-Tree Protocol (STP)

1076


Differentiate between declaring a variable and defining a variable?

999


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(ā€œ-ā€œ); Return 0;

1731


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

1033


Which driver is a pure java driver

1536


Which programming language is best for getting job 2020?

986


What are the 5 organizational structures?

970


What is the difference between class and object in c?

1093


What do you mean by a local block?

1034


Is main an identifier in c?

1088


Function calling procedures? and their differences? Why should one go for Call by Reference?

1044


Explain Function Pointer?

1106


Explain what is the use of a semicolon (;) at the end of every program statement?

1186


When do we get logical errors?

1076


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

1051