#include <limits.h>
int x = INT_MAX;
EDIT: answered before the questioner clarified, I was just guessing what type they wanted.
More Related Contents:
- Assignment makes pointer from integer without a cast and vice versa in c
- How to convert an int to string in C?
- Dividing 1/n always returns 0.0 [duplicate]
- Check if input is integer type in C
- Is there any way to compute the width of an integer type at compile-time?
- Catch and compute overflow during multiplication of two large integers
- How do I check if an integer is even or odd? [closed]
- How to convert integer to string in C? [duplicate]
- What do numbers using 0x notation mean?
- SIMD signed with unsigned multiplication for 64-bit * 64-bit to 128-bit
- Print an int in binary representation using C
- Question about C behaviour for unsigned integer underflow
- How do you store an arbitrarily large integer value in memory?
- C programming, why does this large array declaration produce a segmentation fault?
- Why do we define INT_MIN as -INT_MAX – 1? [duplicate]
- Finding the length of an integer in C
- Generating a uniform distribution of INTEGERS in C
- C integer overflow
- Integer conversions(narrowing, widening), undefined behaviour
- Why does “memset(arr, -1, sizeof(arr)/sizeof(int))” not clear an integer array to -1?
- How can I convert an int to a string in C?
- Why is 248×248 the maximum bi dimensional array size I can declare?
- Is there any reason not to use fixed width integer types (e.g. uint8_t)?
- What happens when I assign long int to int in C?
- C usual arithmetic conversions
- What’s the difference between “int” and “int_fast16_t”?
- Can I compare int with size_t directly in C?
- C pointer to another struct
- gets() function in C
- Minimizing the amount of malloc() calls improves performance?