majestyx Posted March 15, 2018 Share Posted March 15, 2018 because program size is equated both pre-RUN and post-RUN. Once you run the program, the variable space is reserved for whatever you decide to call the variable... rather than having an integer value repeated a hundred times. All thats left is a single, 1 byte reference to the integer. I could see how this might increase speed of the program as well. Write a simple test program and try it out. Will definitely keep this in mind for any future programming projects I may attempt. Been far too busy recently to work on anything, but would love to get back to it soon. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.