friends i asked you about this and after finding
the things manually i conclude
1.all global stored in data segment
2.all locals and func parameteres stored in stack segment
3.function static or otherwise stored in code segment
(it may be called the initialized data segment which may be
thaught of as a part of code segment)
4.all structured constants are a part of symbol table
which inturn is a part of codesegment
a case
char * p="abcd";
p is stored in the stack while "abcd" in the
code segment;
while char ptr[]="abcd"
everything is stored in the stack
static char ptr[]="abcd"
everything stored in the data segment
the things manually i conclude
1.all global stored in data segment
2.all locals and func parameteres stored in stack segment
3.function static or otherwise stored in code segment
(it may be called the initialized data segment which may be
thaught of as a part of code segment)
4.all structured constants are a part of symbol table
which inturn is a part of codesegment
a case
char * p="abcd";
p is stored in the stack while "abcd" in the
code segment;
while char ptr[]="abcd"
everything is stored in the stack
static char ptr[]="abcd"
everything stored in the data segment