EmbLogic's Blog

Write a program to find the range of data types?

CODE:

#include<stdio.h>
#include<limits.h>
#include<float.h>
int main()
{
printf(“Range of integer value:%d to %d \n”,INT_MIN,INT_MAX);
printf(“Range of char value:%d to %d \n”,CHAR_MIN,CHAR_MAX);
printf(“Range of float value:%e to %e \n”,FLT_MIN,FLT_MAX);
printf(“Range of double value:%e to %e \n”,DBL_MIN,DBL_MAX);
printf(“Range of long double value:%e to %e \n”,LDBL_MIN,LDBL_MAX);
//printf(“Range of integer value:%d to %d \n”,LINT_MIN,LINT_MAX);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>