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


Please Help Members By Posting Answers For Below Questions

When the macros gets expanded?

757


What is main () in c language?

564


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1490


write a program to rearrange the array such way that all even elements should come first and next come odd

1733


Can you please explain the scope of static variables?

578






What is the difference between procedural and declarative language?

620


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]

1931


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1041


What is the difference between fread buffer() and fwrite buffer()?

643


Can you write a programmer for FACTORIAL using recursion?

590


What is null character in c?

656


C language questions for civil engineering

1224


Why is sizeof () an operator and not a function?

556


Define Array of pointers.

608


What is quick sort in c?

562