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
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What are the 4 types of programming language?
Explain null pointer.
Explain the Difference between the New and Malloc keyword.
Why do some versions of toupper act strangely if given an upper-case letter?
How do you print only part of a string?
What is the difference between malloc calloc and realloc in c?
What is selection sort in c?
What is return in c programming?
What does the c preprocessor do?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What do you mean by Recursion Function?
What does the c in ctime mean?
What are the c keywords?
what is event driven software and what is procedural driven software?