How would you set a variable to the largest number possible in C?

#include <limits.h>
int x = INT_MAX;

EDIT: answered before the questioner clarified, I was just guessing what type they wanted.

Leave a Comment