How to get max int in C

1 Answer

0 votes
#include <stdio.h>
#include <limits.h>
  
int main(void) {
    int max = INT_MAX; 
    
    printf("%i", max);
    
    return 0;
}




/*
run:

2147483647

*/

 



answered Nov 11, 2022 by avibootz

Related questions

1 answer 182 views
1 answer 193 views
1 answer 170 views
1 answer 195 views
195 views asked Jul 2, 2020 by avibootz
1 answer 220 views
3 answers 335 views
...