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

Is multithreading possible in c?

560


what are bit fields in c?

599


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

630


What does %p mean c?

621


What is the use of clrscr?

587






What is the process to generate random numbers in c programming language?

604


How can you be sure that a program follows the ANSI C standard?

1120


What is f'n in math?

611


What does it mean when a pointer is used in an if statement?

596


Is c is a procedural language?

589


What are the different types of control structures?

576


Write a program to check whether a number is prime or not using c?

567


How can I read/write structures from/to data files?

544


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1879


What are 3 types of structures?

588