rendered paste body// Controls input and output to the console window#include <iostream>// Allows us to use cout and endl without having to add the std:: prefix to them every time.using namespace std;// Multi-line comment below. A multi-line comment begins with /* and ends with */... Anything between is a comment./* An alternative to using namespace std...using std::cout;using std::endl;Typically used only when you need specific commands from a namespace... */int main(int argc, char *argv[]){ // We use an if statement to check to see if *int* is equal to (==) 1 byte... if (sizeof(int) == 1) cout << "int: " << sizeof(int) << " byte..." << endl; // If it isn't, we do this... else cout << "int: " << sizeof(int) << " bytes..." << endl; if (sizeof(unsigned int) == 1) cout << "unsigned int: " << sizeof(unsigned int) << " byte..." << endl; else cout << "unsigned int: " << sizeof(unsigned int) << " bytes..." << endl; if (sizeof(long int) == 1) cout << "long int: " << sizeof(long int) << " byte..." << endl; else cout << "long int: " << sizeof(long int) << " bytes..." << endl; if (sizeof(unsigned long int) == 1) cout << "unsigned long int: " << sizeof(unsigned long int) << " byte..." << endl; else cout << "unsigned long int: " << sizeof(unsigned long int) << " bytes..." << endl; if (sizeof(short int) == 1) cout << "short int: " << sizeof(short int) << " byte..." << endl; else cout << "short int: " << sizeof(short int) << " bytes..." << endl; if (sizeof(unsigned short int) == 1) cout << "unsigned short int: " << sizeof(unsigned short int) << " byte..." << endl; else cout << "unsigned short int: " << sizeof(unsigned short int) << " bytes..." << endl; if (sizeof(char) == 1) cout << "char: " << sizeof(char) << " byte..." << endl; else cout << "char: " << sizeof(char) << " bytes..." << endl; if (sizeof(unsigned char) == 1) cout << "unsigned char: " << sizeof(unsigned char) << " byte..." << endl; else cout << "unsigned char: " << sizeof(unsigned char) << " bytes..." << endl; if (sizeof(float) == 1) cout << "float: " << sizeof(float) << " byte..." << endl; else cout << "float: " << sizeof(float) << " bytes..." << endl; if (sizeof(bool) == 1) cout << "bool: " << sizeof(bool) << " byte..." << endl; else cout << "bool: " << sizeof(bool) << " bytes..." << endl; if (sizeof(double) == 1) cout << "double: " << sizeof(double) << " byte..." << endl; else cout << "double: " << sizeof(double) << " bytes..." << endl << endl; // An alternative to std::cin.ignore(std::cin.rdbuf()->in_avail() + 1); system("PAUSE"); // Tells the OS everything went ok... Returning 1 instead usually means there was an error. // We don't want to do that unless it's true. return 0;}