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


Please Help Members By Posting Answers For Below Questions

What is dynamic variable in c?

571


Is c easier than java?

579


Can you apply link and association interchangeably?

682


What is preprocessor with example?

595


How can I run c program?

694






What are the similarities between c and c++?

605


What are linked lists in c?

653


What is difference between arrays and pointers?

589


Why do we use stdio h and conio h?

645


Why do we use null pointer?

609


What are the types of variables in c?

585


What are the differences between Structures and Arrays?

614


What are structural members?

578


Explain how do you list files in a directory?

620


What is strcpy() function?

662