Hi friends,
i tried to solve the logics for the question " write a c program to find max of 3 numbers with out using ">" and "ternary operators" " . For this i got one logic as
1. first i converted given numbers to strings.
2. i find the max of two numbers by compaing the strcmp() function library.( strcmp(s1,s2) returns 0 if s1 equal to s1, -1 s2 greater than s1 , 1 s1 is greater than s2)
3. i used switch case after strcm() library
from above steps i can find max of 3 numbers
can any one suggest me another logics .
i look for your further replys