c question



In know in other languages you can specify a default value for a variable
in a function decleration. Can you do something like this in c?

void function(char *string="default");

and be able to call it with

function();

?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]