Re: Recursive functions
- From: "Bill Pursell" <bill.pursell@xxxxxxxxx>
- Date: 1 Apr 2007 02:27:36 -0700
On Apr 1, 6:37 am, "Harry" <geharipras...@xxxxxxxxx> wrote:
1)I need your help to solve a problem.
I have a function whose prototype is
int reclen(char *)
This function has to find the length of the string passed to it.But
the conditions are that no local variable or global variable should be
used.I have to use recursive functions.
Ask your instructor what the function should do if its
argument is not a string. Then ask your instructor
why you have been given an idiotic assignment which
will not help you learn to program well. Recursive
functions have a place, and this is not it. It is
unethical and/or incomptetent of your instructor to
teach you how to mis-apply a useful technique.
.
- Follow-Ups:
- Re: Recursive functions
- From: Alex
- Re: Recursive functions
- From: Richard
- Re: Recursive functions
- From: Harald van Dijk
- Re: Recursive functions
- References:
- Recursive functions
- From: Harry
- Recursive functions
- Prev by Date: Re: Dynamic lists of strings in C
- Next by Date: Re: How to access processor registers
- Previous by thread: Re: Recursive functions
- Next by thread: Re: Recursive functions
- Index(es):
Relevant Pages
|