I'm starting with pointers, and I can't see the reason why I'm getting a segfault with this code. I guess I'm accessing the array the wrong way, so how should I access it?
const int MAXIMO_LIBROS_INICIAL = 20;
typedef struct {
string titulo;
char genero;
int puntaje;
} libro_t;
int main(){
libro_t** libros = new libro_t*[MAXIMO_LIBROS_INICIAL];
int tope_libros = 0;
libros[tope_libros]->titulo = "hola";
return 0;
}