practice_C

Structures

Exercises

  1. Define time_struct with hours, minutes, and seconds; assign values and display HH:MM:SS.
  2. Define a book structure with title, author, publication, and price; read and display n books.
  3. Define a person structure with name, date of joining, and salary; read and display five people.
  4. Define a cricket structure with player name, team name, and batting average.
  5. Store 50 players and print a team-wise list of player names with their batting averages.

Click here for explanation and solution.