enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
Answer Posted / saketh
Answer is :6,
solution:
enum is the variable that stores the values in a contiguous manner if they are not initilised with any values...
so,apr=5,may=6;
Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Explain the meaning of keyword 'extern' in a function declaration.
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 reserved words?
Why enum is used in c?
Write a simple code fragment that will check if a number is positive or negative.
Why we use stdio h in c?
What are the application of c?
p*=(++q)++*--p when p=q=1 while(q<=6)
What is c language & why it is used?
What is the auto keyword good for?
How do we open a binary file in Read/Write mode in C?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is double pointer in c?
What do the functions atoi(), itoa() and gcvt() do?