Cranes at VIIT Q24

Identify Topper Using Structures in C

Problem Statement:

Write a C program using a struct named student that stores the following information:

The program should:

  1. Initialize data for 6 students (names, roll numbers, and marks as given below).
  2. Display all student details.
  3. Identify and print the name and roll number of the student who scored the highest marks.

Student Data (use directly in the program):

Sample Output:

Student Details:
Name: Kandisa Vinay Vishnu Vardhan
Roll Number: CL20250315011037946
Marks: 85.50

Name: Matta Sai Venkat Poojith
Roll Number: CL2025031501103341
Marks: 90.00

Name: Mohammed Abdul Khayyum
Roll Number: CL2025031501103352
Marks: 78.00

Name: Mohammed Faizan Bin Haque
Roll Number: CL2025031501103363
Marks: 88.50

Name: N. Deepika
Roll Number: CL2025031501103385
Marks: 92.00

Name: Nukapeyyi Tanuja
Roll Number: CL2025031501103374
Marks: 80.00

Minimum marks: 78.00
Maximum marks: 92.00
Average marks: 85.67

Topper:
Name: N. Deepika
Roll Number: CL2025031501103385
            

Task: Implement this program using an array of structures. Use a loop to find and print the topper's details.