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
Why string is used in c?
Difference between constant pointer and pointer to a constant.
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain the difference between exit() and _exit() function?
Explain what is the advantage of a random access file?
What is the use of ?: Operator?
How many data structures are there in c?
What is the stack in c?
What is difference between union and structure in c?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
#include
what type of questions arrive in interview over c programming?
How many keywords (reserve words) are in c?
What is typedf?
How can I insert or delete a line (or record) in the middle of a file?