>char *s;
Pointer to character.
>char *r[];
Array of pointers to char
>and can you convert the second to the first ?
Yes, you can convert anything to anything using casts. Whether the result is meaningful (or readable) is another matter. See below -
Code:
#include <iostream>
int main()
{
char * s;
char * t[3]={"tt","ss","rr"};
s=(char*)t;
std::cout << *(char **)s << '\n';
return 0;
}
If you wanted you could 'convert' an element of an array of pointers to a pointer by assigning one of the elements to a pointer -
s=t[0];
std::cout << s;