Get maximum and minimum values of data type : Data Type « Data Type « C Tutorial





#include <stdio.h>
main(){
    int i,j ;
    i = 1;

    while (i > 0) {
        j = i;
        i++;
    }
    printf ("the maximum value of integer is %d\n",j);
    printf ("the value of integer after overflow is %d\n",i);
}
the maximum value of integer is 2147483647
     the value of integer after overflow is -2147483648










2.1.Data Type
2.1.1.What is a data type
2.1.2.Introduction to Data Types
2.1.3.C Numeric Data Types
2.1.4.Use unsigned variables
2.1.5.Signed and Unsigned Variables
2.1.6.Get maximum and minimum values of data type
2.1.7.Multiple declarations