Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can anyone solve this question in C language using structs and pointers. Sort the people There are n people, each has a name, a surname

can anyone solve this question in C language using structs and pointers.

image text in transcribed

Sort the people There are n people, each has a name, a surname and a year of birth. Sort them first lexicographically by surname, then by name. If there are several people with the same surname and name, then arrange them in descending order of their year of birth. Input The first line contains the number of people n (1sns 100). Each of the next n lines contains name, surname and year of birth of one person. Name and surname contain no more that 20 characters. Output Print the data about people according to the sorting condition. Time limit 1 second Memory limit 128 MiB Input example #1 Output example #1 6 Mila Catron 1977 Ivan Mendel 1956 Mihail Egorov 1980 Eric Catron 1977 Mihail Egorov 1988 Petr Mendel 1990 Eric Catron 1977 Mila Catron 1977 Mihail Egorov 1988 Mihail Egorov 1980 Ivan Mendel 1956 Petr Mendel 1990

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

6. Vanguard

Answered: 1 week ago

Question

1. PricewaterhouseCoopers

Answered: 1 week ago