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 / guest
6
| Is This Answer Correct ? | 19 Yes | 0 No |
Post New Answer View All Answers
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Is c high or low level?
If the size of int data type is two bytes, what is the range of signed int data type?
Explain c preprocessor?
Why & is used in scanf in c?
Why isnt there a numbered, multi-level break statement to break out
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
#include
What does it mean when the linker says that _end is undefined?
What is difference between && and & in c?
Why we use stdio h in c?
Why c language is called c?
What does %c mean in c?
How can I pad a string to a known length?
What is function pointer c?