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

500

Is This Answer Correct ?    15 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way of making my program efficient?

559


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3132


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

645


Explain how can I avoid the abort, retry, fail messages?

581


What are inbuilt functions in c?

553






Write a C program to count the number of email on text

1411


What will the preprocessor do for a program?

578


Can you mix old-style and new-style function syntax?

654


Can we use visual studio for c?

540


What is a constant?

626


What is wrong with this code?

685


What does 2n 4c mean?

701


What is the use of in c?

568


What is meant by operator precedence?

664


List the difference between a 'copy constructor' and a 'assignment operator' in C?

631