PPS_Assignment_7_Array
PPS_Assignment_7_Array
PRN 1262242426
Division: 24 Batch: 2
Assignment No. 7
Problem Statement:
Write a C program to accept student details and display their result using an array of structures.
Code:
#include <stdio.h>
struct Student {
int roll;
int m1, m2, m3;
char name[30];
int total;
float per;
};
int main() {
int i, n;
printf("--------Student Information--------\n");
printf("Enter the number of records: ");
scanf("%d", &n);
printf("-----------------------------------------------------------------
------------------------\n");
return 0;
}
Output: