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
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Describe the steps to insert data into a singly linked list.
How do you view the path?
Write a program to print factorial of given number using recursion?
List some of the dynamic data structures in C?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Explain setjmp()?
Why is c fast?
Explain a pre-processor and its advantages.
Why do we use stdio h and conio h?
How do I swap bytes?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What is clrscr ()?
What are local variables c?
What is the right type to use for boolean values in c? Is there a standard type?