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

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • If you can't find a cat, look for its tail.
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2966
  • 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?
There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.