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
how to count no of words,characters,lines in a paragraph.
What does *p++ do? What does it point to?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
how logic is used
What are different types of variables in c?
What is wrong with this program statement? void = 10;
what do u mean by Direct access files? then can u explain about Direct Access Files?
If fflush wont work, what can I use to flush input?
What is data type long in c?
What is difference between class and structure?
What is c value paradox explain?
What does it mean when a pointer is used in an if statement?
Explain 'bus error'?
Explain how can I make sure that my program is the only one accessing a file?
What are the advantages of using macro in c language?