/* File: example.c Assigning constants to different data types. */ #include #include "genlib.h" #include "simpio.h" main() { int i ; double x ; char c ; bool flag ; string message ; i = 345 ; printf("The variable i contains: %d\n", i) ; i = 678 ; printf("The variable i contains: %d\n", i) ; x = 314.159e-2 ; printf("The value of pi is: %f\n", x) ; c = 'a' ; printf("The variable c is %c character.\n", c) ; flag = TRUE ; if (flag) printf("Yes it's true!\n") ; message = "Please leave a \"message\"" ; printf("BEEP: %s\n", message) ; }