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 / darpan

AB

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1943


What is spaghetti programming?

767


Which header file is essential for using strcmp function?

1050


How many types of arrays are there in c?

673


What is structure of c program?

693






What is return in c programming?

622


What is the use of void pointer and null pointer in c language?

720


What is logical error?

714


What is a list in c?

707


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1700


What is wrong with this statement? Myname = 'robin';

925


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

858


What is merge sort in c?

725


Which built-in library function can be used to match a patter from the string?

858


What is %s and %d in c?

672