Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is different between auto and local static? why should we use local static?

1122


What is the role of && operator in a program code?

1062


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.

2301


What is ambagious result in C? explain with an example.

2626


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2187


Between macros and functions,which is better to use and why?

2211


Is that possible to add pointers to each other?

1363


Why double pointer is used in c?

1033


What are the functions to open and close file in c language?

1196


By using C language input a date into it and if it is right?

1072


Are pointers really faster than arrays?

1019


can we have joblib in a proc ?

2299


Differentiate fundamental data types and derived data types in C.

1030


What are disadvantages of C language.

1158


What math functions are available for integers? For floating point?

1127