Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Default arguments in functions?

4 views
Skip to first unread message

Madhan

unread,
Sep 14, 2000, 3:00:00 AM9/14/00
to
hi,

why don't we have a default argument in functions as like in C++?

for example in C++ we can able to create a function like

void SimpleInterest(int principal,int months,int rate=15)
{

----Code goes here!
}

I can able to call this function from main with 3 arguments or 2
arguments(in this case the value for rate is 15).

Centura has to consider this?


Madhan

0 new messages