Re: how to test this piece of C code



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.

.



Relevant Pages

  • Re: how to test this piece of C code
    ... 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? ... There are always limits to any human endeavour, ...
    (comp.programming)
  • Re: how to test this piece of C code
    ... testing purpose now. ... preparing for interview/skill test, etc), will they have more than 4GB ... of RAM in order to test such code? ... Most code shops have pretty run-of-the-mill ...
    (comp.programming)
  • Re: OS X on my G3
    ... given sufficient RAM and hard drive space. ... It isn't easy to upgrade the RAM as it requires opening up the machine ... which will leave you less for applications and data. ... or you can find another way to install the software via ...
    (comp.sys.mac.hardware.misc)
  • Re: where do you store app wide data?
    ... Not the JVM.. ... Java applications. ... thats the fault of whoever wrote the application - not Java. ... Files are not stored in RAM when you close them. ...
    (alt.php)
  • Re: OT Camera Raw 5.2 and Photoshop CS4, not CS3
    ... in the IBM/Intel original PC design and is why old PC DOS will run ... address 1 megabyte of RAM. ... but in protected mode it also was ... incapable of running applications written for the 8088 and so it was ...
    (rec.photo.digital.slr-systems)