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
Is multithreading possible in c?
what are bit fields in c?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What does %p mean c?
What is the use of clrscr?
What is the process to generate random numbers in c programming language?
How can you be sure that a program follows the ANSI C standard?
What is f'n in math?
What does it mean when a pointer is used in an if statement?
Is c is a procedural language?
What are the different types of control structures?
Write a program to check whether a number is prime or not using c?
How can I read/write structures from/to data files?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What are 3 types of structures?