Is declaring a variable in a loop bad? I'd imagine it is bad practice, but does it have implications on the performance of the program? Every time you re-define a variable does it get assigned a new memory address and would this slow down the program? Haha as you can see I don't really know much about how the computer works lol I never really thought about this stuff when I was programming in higher level languages!
Also, might as well put this in the same thread - could someone please explain the return statement of the following code to me. I've never really seen the syntax before - 8 bits to a byte right? And on most computers an int is 4 bytes.... a char is 1 byte? Haha I don't know: