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
Explain what are compound statements?
What is malloc() function?
What are the difference between a free-standing and a hosted environment?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Explain goto?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is the difference between far and near ?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Explain the difference between exit() and _exit() function?
What is the difference between union and anonymous union?
Is fortran still used in 2018?
How do you initialize pointer variables?
What is volatile keyword in c?
What are the types of variables in c?
What are the different types of linkage exist in c?