-
I'm not sure how variable declaration actually affects one's memory, I haven't been coding for a long time, and I'm just wondering from an experienced programmer's point of view and would like some advice. Let me know what you all think, I could really use some assistance on this, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The amount of memory to be reserved or allocated depends on the data type stored in that given variable. For example, if a variable is declared to be “integer type”, 32 bits of memory storage will then be reserved for that particular variable. So yes, storage and memory are very much effected by variable declaration. |
Beta Was this translation helpful? Give feedback.
The amount of memory to be reserved or allocated depends on the data type stored in that given variable. For example, if a variable is declared to be “integer type”, 32 bits of memory storage will then be reserved for that particular variable. So yes, storage and memory are very much effected by variable declaration.