Recursive functions
- From: "Harry" <gehariprasath@xxxxxxxxx>
- Date: 31 Mar 2007 22:37:59 -0700
Hi all,
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.
2)sizeof(int) is 2 bytes in turboC.It is 4 bytes in case of gcc.why
different compilers allocate different amount of memory?what is the
reason behind it?
.
- Follow-Ups:
- Re: Recursive functions
- From: Bill Pursell
- Re: Recursive functions
- From: Barry Schwarz
- Re: Recursive functions
- From: Martin Ambuhl
- Re: Recursive functions
- Prev by Date: Re: sizeof dataTypes at run time
- Next by Date: Re: VonNeumann/Harvard architecture (was: Places=lvalues and <ot>Pop11</ot>)
- Previous by thread: Re: bzip2, unicode+0097, finances, sue spammers (was: Various C standards/documents ...)
- Next by thread: Re: Recursive functions
- Index(es):
Relevant Pages
|