Answers for "how to set a variable to infinity in c++"

C++
0

how to set a variable to infinity in c++

#include <limits>

// ...

int a = std::numeric_limits<int>::max();
Posted by: Guest on July-29-2021

Code answers related to "how to set a variable to infinity in c++"

Browse Popular Code Answers by Language