c++ integer infinity code example Example: infinity c++ #include <limits> // ... int a = std::numeric_limits<int>::max();