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 / ashutosh tiwari

compiler error!
after case 3 there is semicolon & j=400 also ended with
semicolon

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a string.

1027


What is indirection?

1026


Explain what is the stack?

1043


What is the importance of c in your views?

1097


What is function in c with example?

1092


How do you list files in a directory?

1078


What is sizeof array?

1003


What does do in c?

995


What is context in c?

886


Why does not c have an exponentiation operator?

999


What is identifier in c?

969


Explain how can a program be made to print the name of a source file where an error occurs?

1136


What are the different types of data structures in c?

1114


What is getch () for?

1150


What are the disadvantages of external storage class?

1007