   c++ syntax question
  Hello all,quick question.  in c++ when i declare a function prototype, i can include default values.ie.  int add (int a = 2, int b = 3);My question is... is there any way to call a function, providing a value for a defaulted variable that comes AFTER another defaulted variable without providing a variable for the first (confusing eh?)ie.  int multiply (int a = 1, int b = 3, float c = 7.55);i call >> multiply (8.96);so i''m only defining a value for the last of the three arguments.Is this possible?  or do i have to provide a value to each variables up to the one i really want to give a value to??if i''ve lost you, i''m sorry... but any help would be appreciated.commando_337   
  Any arguments you provide when you call a function with default arguments are used as the left-most arguments only, ie:   float multiply(int a=1, int b=3, float c=7.55);multiply(8.96); // This would be equivalent to calling:multiply(8.96, 3, 7.55);// Which would give you a warning about converting a float to an int.multiply(2, 5.1); // This is equivalent to:multiply(2, 5.1, 7.55);// Again, the conversion warning.  Cheers, dorix;  You can''t.You can only have default arguments at the end of the arg list, and all arguments before MUST be supplied and the right type.You can try overloading the function several times though, as long as each function has a different argument signature.    ;  Great, thanks for the infocommando_337  