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 swap two numbers without using the third variable?

1083


What is variables in c?

1058


Write a program to swap two numbers without using third variable in c?

1145


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

1238


What is the collection of communication lines and routers called?

1135


Explain the use of function toupper() with and example code?

1141


What functions are used for dynamic memory allocation in c language?

1164


What is gets() function?

1147


Can we use visual studio for c?

1113


What is s or c?

1074


write a program to generate address labels using structures?

4592


What are the different types of control structures?

1055


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2142


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2444


In c programming language, how many parameters can be passed to a function ?

1131