|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I saw the following declaration some where
int a (int a, int b , int c /* 0 */) Does the comment in the bracket act as a default value creator |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
parag_paul@hotmail.com said:
> I saw the following declaration some where > > int a (int a, int b , int c /* 0 */) > > > Does the comment in the bracket act as a default value creator No. It's just a comment. Comment removal happens in TP3. Translation (where, if they existed, rules about default parameter values would be followed) doesn't happen until TP7. -- Richard Heathfield <http://www.cpax.org.uk> Email: -http://www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" - dmr 29 July 1999 |
|
![]() |
| Outils de la discussion | |
|
|