How to create a dynamic array of structure
in "C"
How to create a dynamic array of structure
in "C"
How to ignore the rules: Announcements - General Programming Boards
Perhaps you should read the whole thread and then try something for yourself.
Rather than just hijacking it with some pithy "yeah me too".
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.