Function Definitions

I l @ ve RuBoard

Function Definitions

Although this book has used the ANSI C format for function declarations, C still recognizes the old format. C++, however, only recognizes the new format.

 int twilf(q, n)  /* old-fashioned C, illegal C++ */ int q;           /* declare argument types here  */ int n; {     return (q - n) / (q * n); } 
I l @ ve RuBoard


C++ Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 314
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net