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 / mahesh
b is answer
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write a programming in c to find the sum of all elements in an array through function.
What is a header file?
What is the argument of a function in c?
What does double pointer mean in c?
Can two or more operators such as and be combined in a single line of program code?
What is the difference between a function and a method in c?
What are variables and it what way is it different from constants?
How can a program be made to print the name of a source file where an error occurs?
What is difference between union and structure in c?
What is a function simple definition?
Explain the use of 'auto' keyword
Explain how do you list a file’s date and time?
What is the return type of sizeof?
How can I make sure that my program is the only one accessing a file?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)