P
Pavan
Hi
i would like to know abt the data variable storage in C like
1.where does global variables gets stored and why is it so ..
2.like wise static ,local variables,
as for as i know i remember that localvariables/functionarguments gets
stored in stack is it true then how abt this
lets go with an explicit example since it can give me a exact answers
#include <string.h>
int global;
main()
{
int a ;
int b;
increment(a);
}
increment(int a)
{
a++;
}
now can any one get me clerared abt the memory/stack allocation of the
variables for the above simple code
thanks
Regards
Pavan
i would like to know abt the data variable storage in C like
1.where does global variables gets stored and why is it so ..
2.like wise static ,local variables,
as for as i know i remember that localvariables/functionarguments gets
stored in stack is it true then how abt this
lets go with an explicit example since it can give me a exact answers
#include <string.h>
int global;
main()
{
int a ;
int b;
increment(a);
}
increment(int a)
{
a++;
}
now can any one get me clerared abt the memory/stack allocation of the
variables for the above simple code
thanks
Regards
Pavan