c code for implementing binary search on both strings and numerals and showing comparisons as well..plz do reply..its urgent..

If you compare numbers with statement like
Code:
if (a < b) then something(); else (anotherthing);
you can compare strings like
Code:
if (strcmp(s1,s2) < 0) then somehingwhen_less_();
Read your notes / textbooks about how strings are ordered, that is why ABC is considered "less than" ABD,
 
Thread starter Similar threads Forum Replies Date
O Apps General Discussion 0
R Apps General Discussion 0
N Apps General Discussion 8
O Apps General Discussion 6
K Apps General Discussion 2
K Apps General Discussion 4
C Apps General Discussion 6
geofelt Apps General Discussion 3
J Apps General Discussion 1
M Apps General Discussion 6
A Apps General Discussion 7
Z Apps General Discussion 1
C Apps General Discussion 7
N Apps General Discussion 2
TVTED Apps General Discussion 8
U Apps General Discussion 2
M Apps General Discussion 1
A Apps General Discussion 1
C Apps General Discussion 10
A Apps General Discussion 1

ASK THE COMMUNITY