I try to compile this piece of code but i got error like this: error: ‘UNIT_MAX’ undeclared (first use in this function)
my code:
#include<stdio.h>
#include<limits.h> /*for UNIT_MAX*/
int main(void)
{
int i;
unsigned u = UNIT_MAX;
printf("The largest unsigned int is %u\n\n", u);
for(i = 0; i < 10; ++i){
printf("%u + %d = %u\n", u, i, u + i);
}
for(i = 0; i < 10; ++i){
printf("%u * %d = %u\n", u, i, u * i);
}
return 0;
}