Global const char pointer array in C/C++ : I have defined a const char pointer array in header file. Array contains multiple strings. Now I have to find a string at particular index. I don't know how should I access this array from another files. Please see my code:

common.h

    extern const char *lookup_str[] = {"test Str0", "test Str1", "test Str2", "test Str3"};


file1.c

    int ret = 3;
    std::string r = lookup_str[ret];

Can I use this way in all my C files? Any suggestion/help is much appreciated. Thank you in advance !
