Answers for "c++ get type of objects"

C++
2

get type of an object c++

//get type of a
typeid(a).name()
Posted by: Guest on April-17-2021
0

c++ get type name of object

#include <iostream>

int main() {
	int myNum;
  	std::cout << typeid(myNum).name();
  	return 0;
}
Posted by: Guest on May-07-2020

Browse Popular Code Answers by Language