0
I wanted to know how to access a certain element of a struct the way I’m defining it. Here’s my struct:
typedef struct {
char *produtos[200000];
int contador;
} Produtos,*ProdutosP;
Defini ProdutosP p
as a pointer for struct. Agr accesses the first string of char *produtos[200000]
using p->produtos[0]
but I wanted to access the first character of the first string.
How do I get what I want?