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 / krishna
answer is c 3
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain how many levels deep can include files be nested?
What are categories used for in c?
how many errors in c explain deply
Explain why C language is procedural?
Can a variable be both const and volatile?
What are compound statements?
What is the difference between far and near in c?
What is 2 d array in c?
Why main is used in c?
What is volatile, register definition in C
What are the usage of pointer in c?
What is return type in c?
What are multibyte characters?
Explain how can I pad a string to a known length?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff