Vote count:
0
so if we declare and define a struct before main and want to use this struct in other file which are in the same root as this one, do we need to declare it again in that file? Especially I want to share the memory of a array whose element is the struct so I need to use the shm_get in another file, do I need to declare those struct again?
asked 27 secs ago
struct as global variable
Aucun commentaire:
Enregistrer un commentaire