I am trying to calculate the Greatest Common Denominator of two integers.
C Code:
#include
int gcd(int x, int y);
int main()
{
Check out the page here iso646.h
This header defines 11 macro's that are the text equivalents of some common operators.
and is one of the defines.
Note that I can only test this for a C++ compiler so I'm not certain if you can use this with a strict C compiler.
EDIT I've just tested it with a C compiler here and it does work.