![]() |
yes..
thanks a lot..i understood the problem.. but let me clarify one thing ... why Borland or tourbo compilers are not giving error .... only in gcc i find the problem. |
I got a simplier way for you to understand
Borland = Dos or windows <-- Dos uses very bad memory or at least a simpler memory management gcc = linux / unix <-- More structured way of memory management Your not having a code issue but more of a memory management issue. This information is based directly on the other posts here and not my personal knowlege they are just trying to show you where the error is. Your trying to make the compiler worry about memory management instead of directly dealing with it in effect each compiler is doing it the way IT WANTS TO so in effect seg fault one place and not in another. |
Hey friends..
Thanks everybody for participating with this discussion .... yes...i agree ...it is with memory mngmt issues .. it depends on how compiler is designed.. any more..pls revert back |
All times are GMT -5. The time now is 04:56 PM. |