#include /* * This is a summary of types I remember because they're really common. * Put "C data types" into Wikipedia if you want the full table * * int (signed 32-bit) * short (signed 16-bit) * long long (signed 64-bit) // No longer waffling, it's 64-bit at least * unsigned int * unsigned short * * float (32-bit) * double (64-bit) * * Other stuff that's defined: * size_t (64-bit unsigned integer, or whatever size memory address your system uses) * ssize_t (64-bit signed integer, or as above) * * char (8-bit signed integer, often used to hold letters) * byte (if you didn't want to say char, because you're not using a letter) * - Retraction: That's Java. C only has char and unsigned char. * unsigned char * * For a string: * - An array of characters * - Like this: char word[] = "giraffe"; * - Or this: char word[1024]; * * word would hold "giraffe\0", a 0 at the end * strlen will find how many characters to this 0 * * For any type: * * means a pointer * int *number; // Stores an address of an integer (variable that holds the address is named number) * */ int main(){ puts("Hello World"); return 0; }