'What difference does it make when I include <limits> or <limits.h> in my c++ code
Can somebody please explain this?
#include <iostream>
#include <limits.h>
or
#include <iostream>
#include <limits>
Solution 1:[1]
limits.h is a C standard library header. limits is a C++ standard library header. They contain different things.
There is climits in C++, which offers more or less what limits.h did.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
