int n=1;
while(1)
{
switch(n)
{
case 1:printf("a");
n++;
continue;
case 2:printf("b");
n++;
continue;
default : printf("c");
break;
}
break;
}
Answer Posted / arun
abc
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Write a program with dynamically allocation of variable.
What is volatile, register definition in C
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is meant by preprocessor in c?
What is a keyword?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Why is sprintf unsafe?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Write a Program to accept different goods with the number, price and date of purchase and display them
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
Tell me is null always defined as 0(zero)?
Explain why can’t constant values be used to define an array’s initial size?
Explain what is the stack?
What are the types of arrays in c?
What is n in c?