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

What is the description for syntax errors?

606


What does *p++ do? What does it point to?

608


What is strcpy() function?

650


how should functions be apportioned among source files?

616


Why do we write return 0 in c?

542






Why we write conio h in c?

549


What are the 3 types of structures?

558


How can you return multiple values from a function?

622


What is property type c?

596


What is restrict keyword in c?

635


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

663


Is fortran still used in 2018?

582


What is actual argument?

581


What is a lookup table in c?

618


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1696