Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
14 votes
15 answers
14k views

Compare two integers in C or C++ without comparison operators

Produce the shortest program which takes two signed integers as input (through stdin or as arguments) and displays 3 different outputs depending upon whether the first number is (1) greater than, (2) ...
grove's user avatar
  • 159