Answer the question
In order to leave comments, you need to log in
Does a variable take up any memory after it is declared?
int x;
Does this variable take up memory?
Answer the question
In order to leave comments, you need to log in
1) not identified, but not initialized.
2) in this case, the memory is allocated on the stack.
Depends on the compiler. I’ll tell you more, only static variables definitely occupy memory, any others can be register
intx;
Does this variable take up memory?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question