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);
}
Answers were Sorted based on User's Feedback
Answer / tejal
k=4 bcoz of this control directly switch to case 4 ,now i
holds the value 400 there is no any break statement after
case 4 so now control goes to case 5 and assign value of i
as 500 .now control comes out of the loop and print the
valus of i i.e. 500.
| Is This Answer Correct ? | 0 Yes | 0 No |
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
What are the back slash character constants or escape sequence charactersavailable in c?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Which is better between malloc and calloc?
what is purpose of fflush(stdin) function
What are the keywords in c?
What do you mean by a local block?
create a C program that displays one z,two y's,three x's until twenty six A's. plzz answer i need it tomorrow.
What is bin sh c?
What is hashing in c?
Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?