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
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is spaghetti programming?
Which header file is essential for using strcmp function?
How many types of arrays are there in c?
What is structure of c program?
What is return in c programming?
What is the use of void pointer and null pointer in c language?
What is logical error?
What is a list in c?
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.
What is wrong with this statement? Myname = 'robin';
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
What is merge sort in c?
Which built-in library function can be used to match a patter from the string?
What is %s and %d in c?