you could cheat and get it using unsigned int ;)
but there is also a c++ header file containing that information :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Example program
#include <iostream>
#include <limits>
int main()
{
// the cheating way
unsignedint i = -1;
std::cout << "unsigned int max: " << i << '\n';
std::cout << "int max: " << i / 2 << "\n\n";
// the c++ way
std::cout << "unsigned int max: " << std::numeric_limits<unsignedint>::max() << '\n';
std::cout << "int max: " << std::numeric_limits<int>::max() << '\n';
}
Try the sample program towards the end of this article. By inserting the different types eg <float> instead of <int> you can find out to your hearts content.
Run the program for the reasons given in the article - it is system dependent. What's the difficulty in pressing a the gear wheel ? Either that or google it.