Write a C program that scans data to fill the variable competition declared below and then displays the contents of the structure with suitable labels.
This is a fairly short question, and I am not so good with structures especially when printing them. So please do not tell me to DIY.Code:#define STR_LENGTH 20 typedef struct { char event[STR_LENGTH], entrant[STR_LENGTH], country[STR_LENGTH]; int place; } olympic_t; olympic_t competition;