i notice that when my program outputs files that are >1GB in size, it always crashes with a 'segmentation fault'. i was told that this is because my computer has a RAM of 1GB, so if my program uses malloc to allocate memory of >1GB, then this exceeds the RAM and is the cause of the crash.
is that right? does that mean that the RAM actually limits the size of files that a c program can work with? if so, is there a way to overcome this RAM-imposed limit?