Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- struct student {
- int id;
- int score;
- };
- struct student *allocate() {
- return calloc(sizeof(struct student), 10);
- }
- void generate(struct student* students){
- /*
- *Generate random ID and scores for 10 students, ID being between 0 and
- * scores equal to (id* 10 % 50)
- */
- }
- int main() {
- struct student *stud = allocate();
- generate(stud);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement