S
Santosh Nayak
Hi,
Is it possible to sort the array of struct based on the data members.
e.g.
struct {
int a ;
float b ;
char c ;
} TEMP ;
int main() {
struct TEMP array[10] ;
/* sort () ; */
}
Based on struct members, i want to sort the array[10], with out
rewriting the sort function for each member.
Any comments ??!!
Is it possible to sort the array of struct based on the data members.
e.g.
struct {
int a ;
float b ;
char c ;
} TEMP ;
int main() {
struct TEMP array[10] ;
/* sort () ; */
}
Based on struct members, i want to sort the array[10], with out
rewriting the sort function for each member.
Any comments ??!!