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 / kalyan chukka

Ans is 500 i dont know y it printing 500 u mention k=3 or 4
or 5 any no it prints only 500

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are compound statements?

997


What is malloc() function?

1100


What are the difference between a free-standing and a hosted environment?

1226


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2188


Explain goto?

1096


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1676


What is the difference between far and near ?

1157


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2044


Explain the difference between exit() and _exit() function?

1114


What is the difference between union and anonymous union?

1252


Is fortran still used in 2018?

988


How do you initialize pointer variables?

1034


What is volatile keyword in c?

1000


What are the types of variables in c?

981


What are the different types of linkage exist in c?

977