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
Give me the code of in-order recursive and non-recursive.
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the difference between formatted&unformatted i/o functions?
What is the difference between procedural and functional programming?
What is the general form of a C program?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
Explain what are linked list?
How can I call fortran?
What is the use of a ‘ ’ character?
What are the differences between Structures and Arrays?
How the c program is executed?
Distinguish between actual and formal arguments.
Why is this loop always executing once?
Why doesn't C support function overloading?
Do you know null pointer?