Answers for "typeid to string c++"

C++
0

typeid to string c++

#include <string>
#include <typeinfo>
#include <iostream>

using namespace std;

int main(int argc, char** argv) {
    string str = "string";
    cout << typeid(str).name();
    return 0;
}
Posted by: Guest on May-03-2020

Browse Popular Code Answers by Language