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

0

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointers in c?

658


Why pointers are used in c?

591


When is a “switch” statement preferable over an “if” statement?

650


What is the sizeof () operator?

624


Why is structure padding done in c?

648






while initialization of array why we use a[][2] why not a[2][]...?

1869


write a program for the normal snake games find in most of the mobiles.

1786


show how link list can be used to repersent the following polynomial i) 5x+2

1678


What is meant by inheritance?

634


Is main is a keyword in c?

610


What is a file descriptor in c?

562


How do I get a null pointer in my programs?

620


What is the scope of global variable in c?

558


Is c programming hard?

576


What is floating point constants?

693