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
What is void main ()?
Are enumerations really portable?
What is your stream meaning?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
How can I get random integers in a certain range?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is dynamic memory allocation?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
How can I split up a string into whitespace-separated fields?
How is pointer initialized in c?
What are the different properties of variable number of arguments?
What is formal argument?
What is stack in c?
Differentiate between ordinary variable and pointer in c.