greetings!
anyone could help me here!
the problem is adding all the data in an array given the said parameter! keep me posted then!
greetings!
anyone could help me here!
the problem is adding all the data in an array given the said parameter! keep me posted then!
Recursion is just a needless complication (ie student exercise).
Try showing us that you can do it using a normal loop first.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Here's a link to the FAQs entry regarding an introduction to recursion. If you MUST use recursion to complete your task, then this presentation should help you get started. Once you have attempted a solution please come back with a specific question including pertinent code, error message relating to a specific line, etc.
http://faq.cprogramming.com/cgi-bin/...&id=1073086407
You're only born perfect.