Question: what is difference between function and structure?
Answer: The main purpose of functions is to break a huge task into small manageable parts. Where as a structure is a collection of objects either of different or of same datatypes which are related logically. ... A structure can have any number of variables. The purpose of structure is to handle the data easily and effectively.