Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to check datatype of a variable in c++

#include <typeinfo>
...
cout << typeid(variable).name() << endl;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #datatype #variable
ADD COMMENT
Topic
Name
2+8 =