
- Forum
- Programming Talk
- C and C++
- Output Puzzle
Output Puzzle
This is a discussion on Output Puzzle within the C and C++ forums, part of the Programming Talk category; I have started my practice on my C programming and I have tried my hands on till pointers concepts. Now ...
-
Output Puzzle
I have started my practice on my C programming and I have tried my hands on till pointers concepts. Now what I want to try out is to code and print all integers, but without using any of the looping concept of C. Can we do this? I will also try if someone could get any ideas share it here. I will also try and let you know once this puzzle is solved.
-
Yes sammy one way to print all integers, but without using any of the looping concept in C programming language is to use the concept of recursion. I assume you know about the concept of recursion. If not let me know and I will help you learn abut this concept.
-
06-28-2009, 11:06 AM #3
- Join Date
- Jun 2009
- Answers
- 2
Solution
:yes,we can by creting a function & intialising a value(out side the function) & calling it recursively & incrementing the value,but this woud eventually lead to infinite loop.....have your say.
-
Wouldn't it be easier and faster using tags? or tags are part of the looping concepts of C?
Last edited by galileopy; 09-29-2009 at 09:48 PM. Reason: grammar
-
Sponsored Ads
«
please give logic of this program
|
how to make the password in to asterisk and asign a exact password for char.
»

Reply With Quote





