C++ exercise: correct function declarations

Submitted By: bilderbikkel
Rating: starstarstar (Rate It)
Share: Share By Email By Email

Visit


Description

The function declaration is the (inter)face of a function. And for function declarations the rule 'What you omit, means something' holds. Advanced programmers therefore make different assumptions from a function declaration then beginners.

In this exercise, ten seemingly correct function declarations are shown. Detect the error and argue how these can be improved.

Comments (5)

c++ starstarstar   Posted by: mamo on Monday, March 15, 2010

C++ star   Posted by: Ei That Phoo on Wednesday, May 05, 2010

amazing starstarstarstar   Posted by: dermack on Saturday, November 06, 2010

C++ beginners .ppt slides starstarstarstarstar   Posted by: Sundayy on Monday, February 21, 2011

Hello:
the powerpoint slides were very good and I would like to see more. Please let me know where or when they become available.

Thank You

Q9 starstarstarstar   Posted by: PhilipT on Thursday, February 02, 2012

In Q9, isn't it asking for trouble to have the same name for two different formal parameters?

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.