Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kuefo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants