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 / mytri
6
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is dynamic variable in c?
Is c easier than java?
Can you apply link and association interchangeably?
What is preprocessor with example?
How can I run c program?
What are the similarities between c and c++?
What are linked lists in c?
What is difference between arrays and pointers?
Why do we use stdio h and conio h?
Why do we use null pointer?
What are the types of variables in c?
What are the differences between Structures and Arrays?
What are structural members?
Explain how do you list files in a directory?
What is strcpy() function?