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 / harpreet kaur
we can create our own header file having a function to
print nos with loop and then use that header file in new
prog with the functoin defined in it.
| Is This Answer Correct ? | 30 Yes | 37 No |
Post New Answer View All Answers
What is sizeof array?
What is extern keyword in c?
Write a program for finding factorial of a number.
What are file streams?
Is malloc memset faster than calloc?
Explain how can you be sure that a program follows the ansi c standard?
If I have a char * variable pointing to the name of a function ..
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
How can you tell whether two strings are the same?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
what is the function of pragma directive in c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Is c procedural or functional?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is the difference between pure virtual function and virtual function?