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 built-in function?
Why do we use stdio h and conio h?
c program for searching a student details among 10 student details
What is #define in c?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is extern c used for?
Is javascript written in c?
For what purpose null pointer used?
What does dm mean sexually?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Why is c so important?
Why do we need a structure?
Find MAXIMUM of three distinct integers using a single C statement
Write a program to check palindrome number in c programming?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include