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

How can I find out the size of a file, prior to reading it in?

616


Who invented bcpl language?

700


What is difference between scanf and gets?

610


How do I convert a string to all upper or lower case?

625


Can you pass an entire structure to functions?

691






How are 16- and 32-bit numbers stored?

719


What are the 5 data types?

598


What is an lvalue?

632


Write a program to print “hello world” without using semicolon?

669


What is the difference between %d and %i?

592


What do you mean by a local block?

627


Are the expressions * ptr ++ and ++ * ptr same?

665


What are volatile variables in c?

517


Explain what does the function toupper() do?

629


List the different types of c tokens?

621