Re: how to test this piece of C code
- From: "subramanian100in@xxxxxxxxx, India" <subramanian100in@xxxxxxxxx>
- Date: 10 Mar 2007 00:48:35 -0800
On Mar 10, 3:27 am, Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:
subramanian10...@xxxxxxxxx, India said:
Thanks for the suggestion.
Kindly bear with me for the following question.
I am just learning C at present. So I may not need SIZE_MAX memory for
testing purpose now.
However, in real world applications ie in Job envorinment(I am
preparing for interview/skill test, etc), will they have more than 4GB
of RAM in order to test such code ?
I doubt it very much. Most code shops have pretty run-of-the-mill
collections of PCs, with as little RAM as they think they can get away
with.
I do not understand this. Kindly explain. Does it mean that in real
world applications SIZE_MAX memory won't be asked from malloc/realloc
or there won't be 4GB of input file for testing ?
malloc/realloc have size_t as parameter type which is unsgined int.
So, doesn't it mean that there may be requirement for 4GB of dynamic
memory ?
Please don't be annoyed with my questions because I am learning C
sitting at home, reading books, working in my PC and newgroups is the
only help for me that can solve my doubts.
.
- Follow-Ups:
- Re: how to test this piece of C code
- From: Richard Heathfield
- Re: how to test this piece of C code
- References:
- how to test this piece of C code
- From: subramanian100in@xxxxxxxxx, India
- Re: how to test this piece of C code
- From: Richard Heathfield
- Re: how to test this piece of C code
- From: subramanian100in@xxxxxxxxx, India
- Re: how to test this piece of C code
- From: Randy Howard
- how to test this piece of C code
- Prev by Date: Re: Converting Numbers to Words in English by recursion.
- Next by Date: Re: how to test this piece of C code
- Previous by thread: Re: how to test this piece of C code
- Next by thread: Re: how to test this piece of C code
- Index(es):
Relevant Pages
|