Author Topic: A Couple of C++ Questions  (Read 21078 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
A Couple of C++ Questions
« on: November 14, 2011, 10:00:49 pm »
Curosity ;D

1. Is it true that when declaring variables, compiled C++ code will run faster if all variables are, for example, declared as char as opposed to all variables being declared as double?
2. Registers in the processor get used and erased quite frequently--meaning permanent storage is not possible.  How can one use the register keyword to place a variable inside a register?