consider the following program sigment
int n,sum=1;
switch(n) {
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;}
if n=2, what is the value of sum
a.0
b.6
c.3
d.none
Answer Posted / krishna
answer is c 3
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is p in text message?
How will you write a code for accessing the length of an array without assigning it to another variable?
praagnovation
What are operators in c?
What is structure of c program?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Explain how can I prevent another program from modifying part of a file that I am modifying?
how do you programme Carrier Sense Multiple Access
How would you rename a function in C?
Why functions are used in c?
Does c have function or method?
What are the standard predefined macros?
Explain what will the preprocessor do for a program?
What is a stream water?
Why is c platform dependent?