This question already has an answer here:
- Multiple assignment in one line 8 answers
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