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 different between auto and local static? why should we use local static?
What is the role of && operator in a program code?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is ambagious result in C? explain with an example.
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Between macros and functions,which is better to use and why?
Is that possible to add pointers to each other?
Why double pointer is used in c?
What are the functions to open and close file in c language?
By using C language input a date into it and if it is right?
Are pointers really faster than arrays?
can we have joblib in a proc ?
Differentiate fundamental data types and derived data types in C.
What are disadvantages of C language.
What math functions are available for integers? For floating point?