hsd1234
June 18th, 2006, 21:22
hello
when Im learning C
"GLOBAL variables always keep its memory til program die
so dont make them everytime"
Im really dont understand where are the Strings initialized in functions?
usually they are called LOCAL VARIABLEs
there must be CERTAIN AREA to keep Strings to initial.
so I tested with VC 6.0(my friend compiled it)-I dont have VC compiler
check out source at
http://www.rafb.net/paste/results/VsixY748.html
and result at
www.5n5f.co.kr/oh/LocalVariable.gif
they are surly existed on CERTAIN MEMORY that called .rdata
(maybe VC named it)
yeah there must be CERTAIN AREA and local Strings DO EXIST in memory til PROGRAM terminated.
I think so. hows other guys?
when Im learning C
"GLOBAL variables always keep its memory til program die
so dont make them everytime"
Im really dont understand where are the Strings initialized in functions?
usually they are called LOCAL VARIABLEs
there must be CERTAIN AREA to keep Strings to initial.
so I tested with VC 6.0(my friend compiled it)-I dont have VC compiler

check out source at
http://www.rafb.net/paste/results/VsixY748.html
and result at
www.5n5f.co.kr/oh/LocalVariable.gif
they are surly existed on CERTAIN MEMORY that called .rdata
(maybe VC named it)
yeah there must be CERTAIN AREA and local Strings DO EXIST in memory til PROGRAM terminated.
I think so. hows other guys?