By definition: sizeof char == 1 1 == sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long)
int count = 0; int count {0}; // alternative form int count = 0.5; // count = 0, but no error int count {0.5}; // ILLEGAL - get error, but this is good!
auto b = true; // bool auto ch = 'x'; // char auto count = 0; // int auto d = 1.2; // double
const int a = get_integer(); // legal (assuming get_integer reads num) constexpr int a = get_integer(); // NOT legal
constexpr int MAX_LENGTH = 100; constexpr int SECONDS_PER_DAY = 60 * 60 * 24;
read while not eof process read
for(auto x : fibs) cout << x << endl;
int size; cin >> size; float scores[size]; // Ok! But fixed in size float *scores = new float[size]; ... scores = new float[size * 2];
*distance = 4.5;
g++ -S pointers.cppis in the file pointers.s
cat document.txt | tr '[A-Z]' '[a-z]' | tr -s '[^a-z]' '\n' | sort | uniq | cat - dictionary.txt dictionary.txt | sort | uniq -u