void func ( string word = \"hello\", int b ) { // some jobs } in another function //calling func ( \"\", 10 ) ;
When I have compiled it, compi
The arguments with a default value have to come in the end of the argument list.
So just change your function declaration to
void func(int b, string word = "hello")