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
How can you draw circles in C?
Define recursion in c.
List the variables are used for writing doubly linked list program.
How to Throw some light on the splay trees?
Explain the use of 'auto' keyword in c programming?
What is use of bit field?
How do you define CONSTANT in C?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Should I learn c before c++?
What is an identifier?
Can you apply link and association interchangeably?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
writ a program to compare using strcmp VIVA and viva with its output.
Is it valid to address one element beyond the end of an array?
differentiate built-in functions and user – defined functions.