C program for Displaying 'N' Student details with Top CGPA in Tabular form (structure)
#include <stdio.h> // Structure definition struct Student { char name[50]; int rollno; float cgpa; }; int main() { int n, i; printf("Enter number of students: "); scanf("%d", &n); struct Student s[n]; // array of structures // Input for(i = 0; i < n; i++) { printf("\nStudent %d\n", i + 1); printf("Enter Name: "); scanf("%s", s[i].name); // only single-word names printf("Enter Roll No: "); scanf("%d", &s[i].rollno); printf("Enter CGPA: "); scanf("%f", &s[i].cgpa); } // Output table printf("\n*****************************\n"); printf("*\tName\tRollNo\tCGPA\t*\n"); printf("***********...