static, global variable memory allocation
- From: "fdmfdmfdm@xxxxxxxxx" <fdmfdmfdm@xxxxxxxxx>
- Date: 6 Feb 2007 08:00:15 -0800
This is an interview question and I gave out my answer here, could you
please check for me?
Q. What are the memory allocation for static variable in a function,
an automatic variable and global variable?
My answer: static variable in function and global variable are
allocated in head, and automatic variable is allocated in stack.
Right?
.
- Follow-Ups:
- Re: static, global variable memory allocation
- From: santosh
- Re: static, global variable memory allocation
- From: Flash Gordon
- Re: static, global variable memory allocation
- From: Richard Tobin
- Re: static, global variable memory allocation
- From: Ben Pfaff
- Re: static, global variable memory allocation
- From: jacob navia
- Re: static, global variable memory allocation
- Prev by Date: Re: C net oriented
- Next by Date: Re: static, global variable memory allocation
- Previous by thread: Re: cast a label into a char array....
- Next by thread: Re: static, global variable memory allocation
- Index(es):
Relevant Pages
|