About 14,000,000 results
Open links in new tab
  1. Compare two integers in C - Online Tutorials Library

    Compare Two Integers in C - Learn how to compare two integers in C with practical examples. Understand the logic and implementation through sample code.

  2. How can I compare multiple variables in C? - Stack Overflow

    Apr 19, 2016 · #include <stdio.h> int main(int argc, char **argv) { int a = 1, b = 2, c = 0; printf("%d\n", a == b == c); return 0; } This prints 1 ("true"), even though all numbers are …

  3. Comparison Operators in Programming - GeeksforGeeks

    Mar 21, 2024 · Comparison Operators in programming are used to compare values and determine their relationship, such as equality, inequality, greater than, less than, etc. They evaluate …

  4. C program compare two numbers without using if-else

    But, we can also compare two numbers without using any if-else condition. Let’s take a look : firstNo > secondNo ? printf("%d is greater than %d\n", firstNo, secondNo) : printf("%d is …

  5. C Program To Compare Two Numbers | RRtutors - Medium

    Sep 1, 2023 · Dive into our tutorial offering step-by-step guidance on writing a C program to compare two numbers. Explore conditional statements, grasp the logic behind comparisons, …

  6. Compare two integers with C Program| RRTutors

    In this c programming example we will learn how to compare two integeres. Algorithm. Simple C example to compare two integers. int main() { int a, b; printf("Enter number a : "); scanf("%d", …

  7. code golf - Compare two integers in C or C++ without comparison ...

    Sep 8, 2014 · The standard comparison operators: <, >, <=, >=, ==, !=. Any library file apart from conio, stdio, or iostream. Any non-ASCII or non-printable ASCII character. The Winner. The …

  8. c - Efficient integer compare function - Stack Overflow

    Jun 12, 2012 · The compare function is a function that takes two arguments a and b and returns an integer describing their order. If a is smaller than b , the result is some negative integer. If a …

  9. How to compare two numbers to see which is greater

    Sep 28, 2010 · Comparing two numbers x,y; if x>y I return 1, else return 0. I am trying to do this using only bitwise operators such as >> << ~ ! & | ^ +. So far I got this: int greaterThan(int x,int...

  10. How to compare the digits of 2 integer numbers in c (without …

    Dec 25, 2016 · It basically compares each individual number in the first number against all the numbers in the second number. Depending on the counters, it evaluates if equal numbers …

Refresh