0
int max(x,y)
  int x,y;
  {
   return x>y?x:y;
  }

This code is working without any errors. Can a function take arguments without data types and later define it with specific datatype?

  • It's old historic syntax. In general, just don't use it. – kaylum Aug 11 '21 at 01:09
  • @kaylum I saw it and thought "Thats K&R" - but it's been so long since I used it I couldn't remember if the semi-colon was right or not :-) – John3136 Aug 11 '21 at 01:21

0 Answers0