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
What are conditional operators in C?
What is an array in c?
How can I determine whether a machines byte order is big-endian or little-endian?
How do you print an address?
Are comments included during the compilation stage and placed in the EXE file as well?
formula to convert 2500mmh2o into m3/hr
What is malloc calloc and realloc in c?
How can I make sure that my program is the only one accessing a file?
what are enumerations in C
What is 'bus error'?
What is a stream?
Why is a semicolon (;) put at the end of every program statement?
Difference between goto, long jmp() and setjmp()?
What is sizeof return in c?
What is the difference between memcpy and memmove?