Program to find largest of three numbers without using comparsion operator?

Answer Posted / arunslb123

ct=0;
while(var1 && var2 && var3){
var1++;
var2++;
var3++;
ct--;
}
printf("%d",ct);

could u pls explain this

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are local static variables? How can you use them?

651


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

633


What is declaration and definition in c?

533


When we use void main and int main?

594


What does malloc () calloc () realloc () free () do?

565






When is a void pointer used?

682


What is typedf?

674


Can you define which header file to include at compile time?

596


What is a static variable in c?

674


What are the storage classes in C?

631


How will you divide two numbers in a MACRO?

721


#include { printf("Hello"); } how compile time affects when we add additional header file .

1433


How do you override a defined macro?

706


c program to compute AREA under integral

1818


Why does not c have an exponentiation operator?

633