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's the right way to use errno?
What are the rules for the identifier?
What is typeof in c?
What is abstract data structure in c?
Explain goto?
What does it mean when the linker says that _end is undefined?
program to convert a integer to string in c language'
What is preprocessor with example?
Differentiate between new and malloc(), delete and free() ?
Write a program to reverse a string.
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is the difference between call by value and call by reference in c?
What are the c keywords?
Why is c called c?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)