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() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is else if ladder?
Is that possible to add pointers to each other?
What is data structure in c and its types?
main() { printf("hello"); fork(); }
How can I do peek and poke in c?
Are c and c++ the same?
Explain how do you declare an array that will hold more than 64kb of data?
Why do we use namespace feature?
Where are local variables stored in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Write the Program to reverse a string using pointers.
What is the condition that is applied with ?: Operator?
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); }
What is identifier in c?