Exceeds maximum int size on our system - C Data Type

C examples for Data Type:int

Description

Exceeds maximum int size on our system

Demo Code

#include <stdio.h>
int main(void)
{
    int i = 3147483647;
    unsigned int j = 9294967999;
    //from  w w  w.j a  v a  2 s .  co  m
    printf("%d %d %d\n", i, i+1, i+2);
    printf("%u %u %u\n", j, j+1, j+2);
    
    return 0;
}

Result


Related Tutorials