Sloppy things are
Code:
int age; //declaring our integer :O :O :O :O
char test; //Variable containing ONE character.
should be initialized with a default value like
Code:
#define SPACE ' '
int age = 0; //declaring our integer :O :O :O :O
char test = SPACE; //Variable containing ONE character.
the below code if i have to write i will write like this
Code:
if (!(age == 100)) { // (!100) { //start block
//If age < 100 then run the code!
cout<<"You're not 100 years old!!\n";
}
else if (age == 100) {
cout<<"You're 100 years old!\n";
}
like
Code:
switch (age) {
case 100:
cout<<"You're 100 years old!\n";
break;
default:
cout<<"You're not 100 years old!!\n";
}
This objdump and the footprint of above code will be faster than the if else statements