vendredi 19 août 2016

Can i assign memory to different struct pointer at same time? [duplicate]

This question already has an answer here:

I am a new C learner and have a question. Can I assign memory to different struct pointer at same time? Like this:

head,next,n1=malloc(sizeof(node));

Head next and n1 are pointers of type struct and node is struct name. Will this create 3 different struct pointers in memory?

Aucun commentaire:

Enregistrer un commentaire