TIL - C function with no types for arguments


Today, when practicing aglorithm challenges, I wrote the following C code, as part of a longer program.

int min(x, y){
    if (x < y) return x;
    return y;
}

Once all test cases passed, I was looking for optimizations. I was wondering if more optimal data types could be used, and was looking at types of declared variables, when I looked at that function and realized that I had not declared types for the function arguments.


Another C quirk https://stackoverflow.com/questions/7825055/what-does-the-operator-do-in-c?rq=1