Answer Posted / pinky
main()
{
char ch;
scanf("%c",&ch);
if(ch>64&&ch<91)
printf("capital");
else
printf("small");
}
in scanf fn. it must be '%c' otherwise the ans wl be 'small'
always (check it)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are register variables in c?
can we have joblib in a proc ?
Is that possible to store 32768 in an int data type variable?
List some applications of c programming language?
Why & is used in c?
Is a pointer a kind of array?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Explain do array subscripts always start with zero?
In c language can we compile a program without main() function?
Which driver is a pure java driver
Can you please explain the difference between syntax vs logical error?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is wild pointer in c?
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 is the use of gets and puts?