#include int main(int argc, char** argv) { // declare an unsigned char - one byte // unsigned char foo; // for (long i = 0; i < 256; i++) { // foo = i; // fprintf(stdout, "%d: %d\n", i, foo); // } // declare a signed character - ASCII // char c; // for (long i = 0; i < 256; i++) { // c = i; // fprintf(stdout, "%d: %c (%d)\n", i, c, c); // } // declare a 16-bit integer // short s; unsigned short us; // for (long i = -32768; i < 32767; i++) { // s = i; // fprintf(stdout, "%d: %d (%d)\n", i, s, s); // } // declare an "int" integer // int k; unsigned int uk; // for (int i = -2^31; i < 2^31 - 1; i++) { // s = i; // fprintf(stdout, "%d: %d (%d)\n", i, s, s); // } // declare long integer // long l; unsigned long ul; // for (long i = -2^63; i < 2^63 - 1; i++) { // s = i; // fprintf(stdout, "%d: %d (%d)\n", i, s, s); // } // declare a floating-point number // float x = 27.00125; fprintf(stdout, "x = %f\n", x); // declare a double precision floating-point number // double y = 27.00125; fprintf(stdout, "y = %f\n", y); // declare a character string // char* joe = (char*)"Joe"; fprintf(stdout, "joe = %s\n", joe); // declare a boolean value // bool b = true; bool bb = false; }