The IRMA Community
Newsletters
Research IRM
Click a keyword to search titles using our InfoSci-OnDemand powered search:
|
Functions
|
Copyright: 2024
Pages: 57
Source title:
Advancements, Applications, and Foundations of C++
Source Author(s)/Editor(s): Shams Al Ajrawi (Wiley Edge, USA & Alliant International University, USA), Charity Jennings (Wiley Edge, USA & University of Phoenix, USA), Paul Menefee (Wiley Edge, USA), Wathiq Mansoor (University of Dubai, UAE)and Mansoor Ahmed Alaali (Ahlia University, Bahrain)
DOI: 10.4018/979-8-3693-2007-5.ch004
PurchaseView Functions on the publisher's website for pricing and purchasing information.
|
Abstract
Chapter 4 delves into the heart of modular programming in C++: functions. Starting with an introduction, it establishes the significance of functions in the realm of programming. The chapter systematically dissects the nuances of function prototypes and underscores the importance of function signatures and argument coercion. By elaborating on the intricacies of argument promotion, the reader gains a profound understanding of the subtleties in function calls. A categorization of functions based on return type and argument passing offers clarity and depth to the topic. The chapter elucidates the pivotal concept of scope, supported by a practical “Yes or No” program example. A deep dive into references and the distinct differences between pass-by-value and pass-by-reference paves the way for more advanced topics. Highlights include the exploration of default arguments, the power of function overloading, and the magic of recursion juxtaposed against iteration. The discussion on storage classes, with an emphasis on static storage, reinforces understanding.
Related Content
.
© 2024.
45 pages.
|
.
© 2024.
48 pages.
|
.
© 2024.
66 pages.
|
.
© 2024.
57 pages.
|
.
© 2024.
39 pages.
|
.
© 2024.
40 pages.
|
.
© 2024.
99 pages.
|
|
|