is there any way to declare a variable only storing positive numbers?
is there any way to declare a variable only storing positive numbers?
please reply need some help
use unsigned integer....while we declare a integer like int a..by default its signed(-128~127) but if its unsigned (0~255) it will take only positive values
declaration:
unsigned int u;
But it will be integer....I dont know if you can use it in float type variables!
that would be a charwe declare a integer like int a..by default its signed(-128~127) but if its unsigned (0~255)
an int would be
unsigned int 0 to 65,535
int -32,768 to 32,767
(my 666th post...... )
Last edited by sand_man; 03-30-2005 at 07:15 AM.