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
What is the best way of making my program efficient?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
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
Explain how can I avoid the abort, retry, fail messages?
What are inbuilt functions in c?
Write a C program to count the number of email on text
What will the preprocessor do for a program?
Can you mix old-style and new-style function syntax?
Can we use visual studio for c?
What is a constant?
What is wrong with this code?
What does 2n 4c mean?
What is the use of in c?
What is meant by operator precedence?
List the difference between a 'copy constructor' and a 'assignment operator' in C?