Friday, 18 May 2012

variable storage in memory

As i discussed that we can assume variable as house which provide storage for us.
Read basic understanding of variables in c language

So every house  has a address through which we can reach there. Same mechanism is
applied for variable in memory. Every variable has address in memory that is managed by  programming language.




Again every house has a particular specified area. This mechanism we apply for variable size. Every variable has a fixed amount of size provided by programming language as in c-language (Turbo compiler) it is
  1 byte for character
  2 bytes for integer
  4 bytes for float



Read latest blog

No comments:

Post a Comment