datatypes1.c
#include <stdio.h> void main( ) { int MyInteger; double MyDouble; float MyFloat; char MyCharacter; MyInteger = 10; MyDouble = 20.0; MyFloat = 30.0; MyCharacter = 'X'; printf("MyInteger is %i\n MyDouble is %f\n MyFloat is %f\n MyCharacter is %c\n", MyInteger, MyDouble, MyFloat, MyCharacter); }
Here's the output of running datatypes1.c
My Integer is 10