Student Record Array
Student Record Array
The below code demonstrates the application of array of structure inside a C program:
*/
#include <stdio.h>
// Structure definition
struct Student {
char name[50];
int age;
float marks;
};
int main() {
};
return 0;
/****Output****
Student 1:
Name: Nikhil
Age: 20
Marks: 85.50
Student 2:
Name: Shubham
Age: 22
Marks: 90.00
Student 3:
Name: Vivek
Age: 25
Marks: 78.00
*****/