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
using for loop sum 2 number of any 4 digit number in c language
How pointers are declared?
What are the different types of errors?
Why do we need a structure?
Explain heap and queue.
What is an endless loop?
What is #line used for?
Why we write conio h in c?
What is maximum size of array in c?
What is structure of c program?
Write a program to identify if a given binary tree is balanced or not.
What is a class c rental property?
What are the types of pointers?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Can you define which header file to include at compile time?