qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
TYPES.C
                                             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 );
}