Hey everone,
Can we use the algorithmic sort function - sort() to sort a structure -
struct person{ int a,b,c; }p[10];
on the basis of p[i].c;
IF Yes then HOW ? (Please give a detailed explanation)....
Anmol
cplusplus.com/reference/algorithm/sort/
lmgtfy.com/?q=c%2B%2B+sort+a+struct&l=1