Perfectly legal, default assignment would be 1. I'm fairly sure.
Originally posted by Shadow12345
two function PROTOTYPES
int Area(int width, int = 1);
int Area(int size);
Now I asked some C++ genious why or why not this wouldn't work. First all this person said that you cannot assign to int and then he said some other mumbo jumbo. On the other hand I thought you didn't have to include parameter names in the parameters list, so although it says int = 1 i thought it would still be legal.
Well any comments, criticisms and donations may be left here, thank you for joining this thread, please come again.