◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── /* TYPES.C: Illustrate basic data types. */ #include <stdio.h> main() { char char_val = 'a'; int int_val = 543; float float_val = 11.1; double double_val = 66.123456789; printf( "char_val = %c\n", char_val ); printf( "int_val = %d\n", int_val ); printf( "float_val = %f\n", float_val ); printf( "double_val = %2.9f\n", double_val ); }