Hi.How can the greatest of three numbers be determined without using the comparison operator?Thanks for any help.
Jerico
Jerico
int getMax(unsigned a, unsigned b, unsigned c) { int m=0; while((a?a--:0)+(b?b--:0)+(c?c--:0)) m++; return m; }
Comment