C Program to Store and Display Student Details
c
Copy
Edit
#include
// Define a structure to store student details
struct Student {
int rollNo;
char name[50];
int age;
float marks;
};
int main() {
struct Student student;
// Input student details
printf("Enter Roll Number: ");
scanf("%d", &student.rollNo);
printf("Enter Name... https://docs.vultr.com/clang/examples/store-information-name-roll-and-marks-of-a-student-using-structure