There is such a structure:

struct avto { char brand_model[50]; char year[15]; char capacity[10]; char horsepower[4]; char mileage[15]; }; 

Such an array:

 struct avto avto_list[150]; 

And there is such a function:

 int sort_list(int kolavt, struct avto avto_list[]) 

In main, this is a function call:

 sort_list(kolavt, avto_list); 

How can I correctly arrange * or & (I don’t really understand them in this case) so that the array of structures changes only in the function itself, and when leaving it remains the same as it was before it fell into the function?

  • I find it difficult to determine what I want more: put a minus for "I do not really understand" or plus for "How to arrange * or &." - Igor

0