- 1
How to write c programme called student and store student details(ID and marks of three subjects).and create an array student?
I cant do that
4 Réponses
+ 3
Give it a try. Then ask specific questions. I always wonder how lazy people can be.
+ 2
When you have an attempt ready, just link it here and people will help. It is very unlikely someone will write the whole code for you.
Do you need to store all this data in an array? Imo it can be done more efficiently with linked list, for example. Ll doesn't have the size limitations and manipulating the data is easier than in an array. Create a struct with id, the marks (in whatever form you think is more appropriate to store them) and pointers to the next node and the head (plenty of examples of link.lists on the net). Each student's data will be stored in a separate node. Create the list or write insertion/deletion functions and add/remove the data when needed.
/* Unless you need to store only one student's data. Then an array should be enough. If this is the case then the task is absolutely obvious, and you surely can do it. */
+ 1
And we should guess the error messages or magically know them?
They usually give a hint whats wrong. That's how you learn: make mistakes and understand what the reasons were.
- 1
I have tried but there are some errs