Skip to content

Instantly share code, notes, and snippets.

@j2doll
Last active August 12, 2017 09:16
Show Gist options
  • Save j2doll/a48232b453bc00f09dfcc044ca4fc961 to your computer and use it in GitHub Desktop.
Save j2doll/a48232b453bc00f09dfcc044ca4fc961 to your computer and use it in GitHub Desktop.
min max value using STL
// MinMax.cpp
// min/max value of C++
// code from : http://www.cppreference.com/wiki/data_types
#include <limits>
std::cout << "Maximum short value: " << std::numeric_limits<short>::max() << std::endl;
std::cout << "Minimum short value: " << std::numeric_limits<short>::min() << std::endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment