Skip to content

Instantly share code, notes, and snippets.

@rlapz
Created September 28, 2021 00:28
Show Gist options
  • Save rlapz/c9e4a9822fce6f016c4d1a769664d2b0 to your computer and use it in GitHub Desktop.
Save rlapz/c9e4a9822fce6f016c4d1a769664d2b0 to your computer and use it in GitHub Desktop.
Finding the biggest number
int
max(int a, int b, int c, int d)
{
int tmp1, tmp2;
tmp1 = (a > b) ? a : b;
tmp2 = (c > d) ? c : d;
return (tmp1 > tmp2) ? tmp1 : tmp2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment