0

Static Queue in C

How do I print the elements correctly? The program run good but I can't print the numbers in the correct order https://code.sololearn.com/cnlzlceWvS1U/?ref=app

1st Sep 2018, 3:02 AM
Diego Gongora
Diego Gongora - avatar
1 Answer
+ 2
You are not initializing c->tama so you are indexing c->cola[] beyond the storage malloc gave you.
5th Sep 2018, 11:02 PM
John Wells
John Wells - avatar