Create a Structure for holding details about the car like Model,Color,distance travelled, ,Rented or not And Create a Union inside this Structure which contains field like Name and Address of the Person renting the car,and date given for rental.If the Car is in shop for repair the structure should contain the date when the car was taken out for service and the reason for repair.
Print all car owners names,whose car has been rented now
Sample Input:
HondaBrio Black 20000 Yes Arun Metukuppam 01/07/2015
Alto Grey 50000 No 02/07/2015 oilleak
HondaCity Blue 10000 Yes Senthil Velahery 04/07/2015
Sample Output:
Arun
Senthilhelp this question
Comments
(5)
Please login to comment.