R
Rishtaara
C Programming Fundamentals
Lesson 8 of 8Article22 min

Mini Project - Student Record Manager

Mini Project - Student Record Manager

Project outcome

  • Capture student details with structs.
  • Store multiple records in arrays.
  • Search and print records by criteria.
  • Practice modular function design.

Starter project code

Record manager skeleton
#include <stdio.h>

typedef struct {
    int id;
    char name[40];
    float marks;
} Student;

int main(void) {
    Student students[2] = {
        {1, "Asha", 88.5f},
        {2, "Kabir", 91.0f}
    };

    for (int i = 0; i < 2; i++) {
        printf("%d %s %.1f\n", students[i].id, students[i].name, students[i].marks);
    }
    return 0;
}