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 / sathish

400

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is derived datatype in c?

1143


What are the application of void data type in c?

1232


How important is structure in life?

1144


The difference between printf and fprintf is ?

1344


Difference between Function to pointer and pointer to function

1130


Are local variables initialized to zero by default in c?

1099


When do we get logical errors?

1173


What is typedef struct in c?

1095


What is the best way of making my program efficient?

1083


What is difference between main and void main?

1286


Explain the process of converting a Tree into a Binary Tree.

2724


Who invented bcpl language?

1247


Write a program to reverse a linked list in c.

1179


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2824


Explain what is the difference between functions getch() and getche()?

1112