Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Which function ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 25356 of 28006
Post > Topic >>

Which function header do you prefer?

by istillshine@[EMAIL PROTECTED] Apr 4, 2008 at 05:50 AM

int foo(x, y, z)
  double *x;
  int y;
  double z;
{
  /* do something */
}

or

int foo(double *x, int y, double z)
{
  /* do something */
}


I notice the first one appeared in 1978's The C Programming Language
book.
The second edition of the book adopted the second one.  The first one
seem more
readable when there are many arguments.
 




 4 Posts in Topic:
Which function header do you prefer?
istillshine@[EMAIL PROTEC  2008-04-04 05:50:18 
Re: Which function header do you prefer?
Ben Bacarisse <ben.use  2008-04-04 14:09:45 
Re: Which function header do you prefer?
Hallvard B Furuseth <h  2008-04-04 15:12:50 
Re: Which function header do you prefer?
Martin Ambuhl <mambuhl  2008-04-04 10:10:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 11:28:34 CST 2008.