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 / gouse mohiddin

500

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does #pragma once mean?

1136


Do pointers store the address of value or the actual value of a variable?

1045


What are enums in c?

1158


Can static variables be declared in a header file?

1034


Which of these functions is safer to use : fgets(), gets()? Why?

1071


What is an arrays?

1049


What is quick sort in c?

1052


What is a pointer on a pointer in c programming language?

1113


What are header files and what are its uses in C programming?

1175


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1159


What is meant by keywords in c?

1053


What is meant by realloc()?

1109


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1351


What are volatile variables in c?

911


What is #pragma statements?

1070