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

Is there sort function in c?

574


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

1759


What is difference between array and structure in c?

573


What are the types of arrays in c?

619


Why is a semicolon (;) put at the end of every program statement?

621






What is stack in c?

609


Explain how do you use a pointer to a function?

637


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

727


What are the advantages and disadvantages of a heap?

702


code for find determinent of amatrix

1512


How can you invoke another program from within a C program?

611


What's the difference between constant char *p and char * constant p?

651


What is data structure in c and its types?

591


What is the difference between printf and scanf )?

587


What is the use of bit field?

635