answersLogoWhite

0

How do you find a largest algorithm in c plus plus?

Updated: 8/20/2019
User Avatar

Wiki User

12y ago

Best Answer

#define max (a, b) ((a) >= (b)) ? (a) : (b)

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find a largest algorithm in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Algorithm of push and pop in c plus plus?

pop push c++ programming


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.


How does algorithm and c plus plus program get along?

They are bosom-friends.


What is GCD in C Plus Plus?

A C++ implementation of the Binary GCD (Stern's) algorithm is shown in the Related Link below.


What is dry run in c plus plus terminology?

A manual check of the algorithm to ensure its correctness.


How do you check a user's text input in C plus plus?

Use an SLR parser algorithm.


Write a c plus plus program to find the largest among three numbers using ternary operators?

R = (A > B && A > C) ? A : (B > C) ? B : C; // parentheses not necessary - for clarity only


How do you write algorith of C programs?

There is no specific Hard and Fast rule for writing algorithm. The normal method is the following: 1. get a problem 2. find or invent an algorithm to solve it 3. implement the algorithm in a programming language (C, for example)


Write an algorithm to find the largest number amongst three numbers and draw a flowchart?

Step1- Read a,b,c. Step2-if a>b continue step 5. Step3- b>c then print “b is the largest " and continue step 7. Step4- continue step 6 Step5-if a>c then print “a is the largest " then continue step7. Step6- print “z is largest". Step7- end.


A plus b plus c equals d. A is the largest answer b is the smallest answer and d is less than 6?

A plus b plus c equals d. A is the largest answer b is the smallest answer and d is less than 6?''


How can you implement Ricart and Agrawala's algorithm in c?

Ronaldo! 'c' coding of Ricart-agarwala algorithm


What are the three variable types largest to smallest in C plus plus?

doginert jesret