Write a C++ program without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;
Answer Posted / pur
main()
{
int i =100;
start:
if( i == 0)
goto end;
printf(" %d ",i)
i--;
goto start;
end:
printf(" end of the program");
}
| Is This Answer Correct ? | 20 Yes | 47 No |
Post New Answer View All Answers
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Explain the difference between malloc() and calloc() function?
The file stdio.h, what does it contain?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is c standard library?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is bss in c?
Write a program to swap two numbers without using a temporary variable?
using only #include
What is the default value of local and global variables in c?
How to define structures? ·
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What are the standard predefined macros?
What are the salient features of c languages?
How can I remove the trailing spaces from a string?