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 / mahesh
b is answer
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
How is a structure member accessed?
Is it possible to have a function as a parameter in another function?
What are variables c?
Is flag a keyword in c?
How can I implement sets or arrays of bits?
What is the difference between Printf(..) and sprint(...) ?
How do you determine a file’s attributes?
Explain 'bit masking'?
How can you draw circles in C?
What’s a signal? Explain what do I use signals for?
define string ?
Is c is a low level language?
Define Array of pointers.
What are the types of pointers?