what wud be the output?
main()
{
char *str[]={
"MANISH"
"KUMAR"
"CHOUDHARY"
};
printf("\nstring1=%s",str[0]);
printf("\nstring2=%s",str[1]);
printf("\nstring3=%s",str[2]);
a)string1=Manish
string2=Kumar
string3=Choudhary
b)string1=Manish
string2=Manish
string3=Manish
c)string1=Manish Kumar Choudhary
string2=(null)
string3=(null)
d)Compiler error
Answer Posted / shashi singh
compiler error
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the c value paradox and how is it explained?
What does s c mean in text?
How are 16- and 32-bit numbers stored?
Which programming language is best for getting job 2020?
Under what circumstances does a name clash occur?
What is methods in c?
Is a house a mass structure?
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 does nil mean in c?
What are volatile variables in c?
Explain logical errors? Compare with syntax errors.
Is int a keyword in c?
What are the valid places to have keyword “break”?
Is r written in c?
Why shouldn’t I start variable names with underscores?