In book Head First C, it says that the computer does not allocate memory for variable name of an array.
I got confused! Is this really true?
But if it has a memory, why can I not assign another array to this one?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A computer program is an abstraction which describes the functionality you wish to perform. A compiler takes your description and translates it into machine code for the computer to execute.
A metaphor:
A computer program in C is the same — it does not matter what you name the variables — the code that the computer will actually run will take up the same space if you call a variable “a” or if you call the variable “aVeryLongVariableName”. The compiler will keep track of the names but the final output will be the same.