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 is string concatenation in c?
What is use of #include in c?
what is a function method?give example?
What is the argument of a function in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What do you understand by friend-functions? How are they used?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What is nested structure in c?
What are the 5 data types?
What standard functions are available to manipulate strings?
Explain what are multibyte characters?
c language interview questions & answer
What is array of structure in c?
Explain what is a static function?
What is a program flowchart?