char ch=10;printf("%d",ch);what is the output
Answer Posted / marc
58
Ascii of '0' is 48
thus, ascii of '10' is 48+10=58
| Is This Answer Correct ? | 6 Yes | 14 No |
Post New Answer View All Answers
Why c is faster than c++?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
How can I remove the leading spaces from a string?
Explain low-order bytes.
In c programming language, how many parameters can be passed to a function ?
What is const and volatile in c?
what are the 10 different models of writing an addition program in C language?
What is volatile, register definition in C
C program to find all possible outcomes of a dice?
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]
Do variables need to be initialized?
What are the __date__ and __time__ preprocessor commands?
Differentiate between calloc and malloc.
How many types of operator or there in c?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?