Question About Memory
Will a block of code that is multiple lines but syntactically the same as a block of code with less lines, take up more memory? Are you using whitespace when moving to a new line? I'm guessing if there is a difference in memory, it is probably negligible. I am genuinely curious about this and would like to learn more about computer memory. Could anyone suggest some good resources? Thank you.
5/10/2020 12:21:29 AMIan Stewart
9 AnswersNew Answer
This may help you in your studies Ian Stewart though you will want to Google and read further on the subject. Thanks and happy coding https://www.tutorialspoint.com/computer_fundamentals/computer_memory.htm
Thank you, BroFar and Kevin Star!
use the @ and a name window opens then click on desired name Ian Stewart
Awesome! Thank you BroFar!
Interesting question. Fortunately, compilers aren't that gullible. They compile they same assembly code, regardless of the whitespace, because the syntax remains the same. It will probably compile a microsecond or so slower, but the executable file will be identical, so it will run at the same speed.
welcome Ian Stewart
How do I mention you?
Makes sense, Raphi Spoerri . Thanks!