My photo
Bangalore, Karnataka, India
Extending one hand to help someone has more value rather than joining two hands for prayer

Archives

range of integer value

Tuesday, September 1, 2009

#include<iostream.h>
#include<conio.h>
#include<limits.h>
void main()
{
 clrscr();
 cout<<"minimum value of int="<<INT_MIN<<"\n";
 cout<<"maximum value of int="<<INT_MAX<<"\n";
 cout<<"maximum value of unsigned int="<<UINT_MAX<<"\n";
 cout<<"maximum value of long int="<<LONG_MAX<<"\n";
 cout<<"minimum value of long int="<<LONG_MIN<<"\n";
 getch();
 }

0 comments: