main()
{
char as[] = "\\0\0";
int i = 0;
do{
switch( as[i++]) {case '\\' : printf("A");
break;
case 0 : printf("B");
break;
default : printf("C");
break;
}}
while(i<3);
}
Answer Posted / dishank
darpan can u plz explain me how does the answer AB comes...
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
When the macros gets expanded?
What is main () in c language?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
write a program to rearrange the array such way that all even elements should come first and next come odd
Can you please explain the scope of static variables?
What is the difference between procedural and declarative language?
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]
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is the difference between fread buffer() and fwrite buffer()?
Can you write a programmer for FACTORIAL using recursion?
What is null character in c?
C language questions for civil engineering
Why is sizeof () an operator and not a function?
Define Array of pointers.
What is quick sort in c?