Tuesday 9 December 2014

C Program to examine int,float data types

Program to examine int,float data types
#include<stdio.h>
#include<stdlib.h>
main()
{
int a=5,b=2,c;
float d=1.5,e=2.5,f;
c=(a+e);
f=(b+d);
printf("c=%d\n",c);
printf("f=%f\n",f);
}
OutPut:
c=7
f=3.500000