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 / guest
6
| Is This Answer Correct ? | 19 Yes | 0 No |
Post New Answer View All Answers
Write a program to reverse a linked list in c.
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
List some of the static data structures in C?
Is it possible to pass an entire structure to functions?
Explain the use of #pragma exit?
What is binary tree in c?
What is a example of a variable?
What is abstract data structure in c?
what is the function of pragma directive in c?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
Is javascript written in c?
What are the types of pointers in c?
What is the difference between procedural and declarative language?
What is the difference between int main and void main in c?
Explain how can a program be made to print the line number where an error occurs?