what is the different between if-else and switch statment
(other than syntax)
Answer Posted / manikandan
if else
is nothing but private variables.
structure is nothing but continuous allocation and public
variables and dissimilar data type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between declaring a variable by constant keyword and #define ing that variable?
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]
What are the similarities between c and c++?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is the use of define in c?
What is calloc malloc realloc in c?
What is the argument of a function in c?
What is a 'null pointer assignment' error?
Can we replace the struct function in tree syntax with a union?
Which function in C can be used to append a string to another string?
Explain how can I right-justify a string?
What is the difference between struct and typedef struct in c?
What is void main ()?
What is c++ used for today?
Is it fine to write void main () or main () in c?