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 / gandhi priyank

goto statment is also right because goto statement is not a
loop
e.g.
void main()
{
j:
printf("type your text here");

goto j;
}

Is This Answer Correct ?    10 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

709


What is integer constants?

626


Where is volatile variable stored?

657


What is a void pointer? When is a void pointer used?

632


What is the most efficient way to count the number of bits which are set in an integer?

595






What is header file definition?

577


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2659


How can I list all of the predefined identifiers?

583


Explain how can you determine the size of an allocated portion of memory?

629


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

652


What is masking?

641


How to implement a packet in C

2401


Does free set pointer to null?

569


What is strcpy() function?

662


When can a far pointer be used?

593