How to check type Int in c++?

http://www.careercup.com/question?id=246725