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
How can I use a preprocessorif expression to ?
Explain how do you print an address?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What is const volatile variable in c?
Is c dynamically typed?
Is it better to use a macro or a function?
How can you allocate arrays or structures bigger than 64K?
What is a structure and why it is used?
What are 3 types of structures?
What is extern c used for?
What is the hardest programming language?
What are local variables c?
Is c programming hard?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is ambagious result in C? explain with an example.