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 swap two numbers without using a temporary variable?
Is there anything like an ifdef for typedefs?
Differentiate between null and void pointers.
Is main a keyword in c?
What do you mean by c?
Explain heap and queue.
What are the advantages of using linked list for tree construction?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is array of pointers to string?
Explain void pointer?
Write a program that accept anumber in words
What is line in c preprocessor?
Is main is user defined function?
What is the difference between a string and an array?
How do you override a defined macro?