Answers for "c++ typedef array"

C++
1

c++ typedef array

// This will define a type named TYPE representing an array of 4 doubles  
typedef double TYPE[4];
Posted by: Guest on April-21-2021
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