answersLogoWhite

0


Best Answer

using max function

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you compare 2 numbers without using relational operators in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you compare two numbers without using any operators in c?

You cannot compare 2 numbers without using relational operators. Certainly, you could subtract them, but you still need to test the result, and that is a relational operator in itself.


How do you add two numbers without any operators in maths?

Calculus Magic!


Largest of 3 numbers without using conditional or relational operators?

void main() { int a = 5; int b = 7; int c = 2; int res; res = (int)(a/b)?a:b; res = (int)(res/c)?res:c; printf("big num = %d",res); }


What is the simplify of 11 15 4 910 5 7?

There is no way to simplify a string of numbers without any operators.


What is 4.5 10 3?

It is a group of numbers without any operators separating them. It is therefore not possible to evaluate them as if they formed a numerical expression.


What does Nagel mean when he says that there are goods and evils that are irreducibly relational?

When Nagel says that there are goods and evils that are irreducibly relational, he means that some things are good or bad not in themselves but in relation to other things. For example, winning a competition may be good in relation to the competitors, but not inherently good in all contexts. This suggests that some values are contingent on specific relationships or contexts.


How many set of 5 numbers can be made with 2 7 3 1?

None without applying any binary operations because repeated use of a digit does not alter the cardinality of a set. If you can use operators, the answer depends on which operators and how they may be combined.


What are the functions of scientific notation?

To show very large or very small numbers, without writing out all the digits. To make it easy to compare such numbers, without having to count all the digits.


What is a relational completeness?

Relational completeness refers to the ability of a database management system to represent all relational operations and constraints. It ensures that the system can handle queries, updates, and integrity constraints effectively without compromising the accuracy or consistency of the data. Relational completeness is a key feature of relational database systems to ensure proper data management.


How do you find the greatest of two numbers without using the if-else comparison operators?

By subtracting any two of the numbers A-B , if the output number is negative , B IS GREAT and if its positive A is great


How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


4 4 4 4 4 equals 10?

No 44444 is not 10. the answer is 1,024. Without any operators of indication of how to manipulate the numbers they remain a series of 4s