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
What is the significance of an algorithm to C programming?
What is exit() function?
Write programs for String Reversal & Palindrome check
Is stack a keyword in c?
What is getch?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Differentiate between new and malloc(), delete and free() ?
How do I use strcmp?
How do I get an accurate error status return from system on ms-dos?
In which language linux is written?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is the difference between array and pointer in c?
Differentiate abs() function from fabs() function.