Exforsys

Free Training

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 ...

Go Back   Exforsys > Programming Talk > C and C++

Exforsys.com


C and C++ C and C++

Reply

 

LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 05-08-2007, 04:51 PM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
Thumbs up 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-12-2008, 06:40 PM
Member
 
Join Date: May 2006
Posts: 45
Allan is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-28-2009, 11:06 AM
Junior Member
 
Join Date: Jun 2009
Posts: 2
santoshcasshyap is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-29-2009, 09:47 PM
Banned
 
Join Date: Sep 2009
Posts: 4
galileopy is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Output of the Statement Adrian Oracle Database 2 04-26-2008 04:40 AM
Control Output caradoc DB2 3 04-09-2007 08:59 AM
C Programming - Managing Input and Output Operations JobHelper Career Advice 0 04-15-2006 08:30 AM
[gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26) Chet Ramey Tech FAQ 0 05-27-2004 11:00 AM
Solaris x86 FAQ 2/2 Dan Anderson Tech FAQ 0 04-27-2004 08:24 PM


All times are GMT -4. The time now is 07:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.