Hi All,
Is there any function in C which will return the RANK of an array ( like Oracle RANK Function ) .
Eg :
Array[0] = 121
Array[1] = 122
Array[2] = 122
Array[3] = 125
Array[4] = 125
Array[5] = 126
It will return like
Array[0] ----> RANK
121 ----> 1
122 ----> 2
122 ----> 2
125 ----> 3
125 ----> 3
126 ----> 4
Any help will be appreciated . Thanks in Advance .
Mridul
Is there any function in C which will return the RANK of an array ( like Oracle RANK Function ) .
Eg :
Array[0] = 121
Array[1] = 122
Array[2] = 122
Array[3] = 125
Array[4] = 125
Array[5] = 126
It will return like
Array[0] ----> RANK
121 ----> 1
122 ----> 2
122 ----> 2
125 ----> 3
125 ----> 3
126 ----> 4
Any help will be appreciated . Thanks in Advance .
Mridul