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 / manish verma
I guess, if it is not asking for any kind of loop (for /
while) then one can use recursive functions to achieve this.
| Is This Answer Correct ? | 63 Yes | 9 No |
Post New Answer View All Answers
what type of questions arrive in interview over c programming?
What is the difference between text and binary i/o?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What does sizeof function do?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Why doesnt the call scanf work?
What does sizeof return c?
What are the disadvantages of external storage class?
Why can’t constant values be used to define an array’s initial size?
application attempts to perform an operation?
What is the purpose of void pointer?
How do we make a global variable accessible across files? Explain the extern keyword?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Differentiate between functions getch() and getche().