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 / amik
the answer will b 500 becoz...when first k = 4 is
executing...the value of j is 400 den thr is no break
statement...so it will continue..nd at the end of the
switch..j will contain or retain.. the value 500
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why should I prototype a function?
hi, which software companys will take,if d candidate's % is jst 55%?
how should functions be apportioned among source files?
Why isn't it being handled properly?
What is header file definition?
Can main () be called recursively?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Are the outer parentheses in return statements really optional?
Write a program for finding factorial of a number.
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Explain main function in c?
What are types of structure?
What's a good way to check for "close enough" floating-point equality?
what is ur strangth & weekness
What is a example of a variable?