When I tried to compile this code I received the following error: ISO C++11 does not allow Conversion from string literal to 'char *'.
These values { "Abriel", "Valencian" } create a matrix matrix of type const char*.
The pointer names need to be of type const char* to point to that matrix.
When the program is running, each element is copied to a char[100] matrix, which allows the modification of each element separately.
#include <iostream>
int main()
{
const char* nomes[100] = { "gabriel", "vanessa" };
std::cout << nomes[0] << '\n';
std::cout << nomes[1] << '\n';
nomes[0] = "vanessa";
nomes[1] = "gabriel";
std::cout << nomes[0] << '\n';
std::cout << nomes[1] << '\n';
return 0;
}