Functions

Functions

Copyright: © 2024 |Pages: 57
ISBN13: 9798369320075|ISBN13 Softcover: 9798369349984|EISBN13: 9798369320082
DOI: 10.4018/979-8-3693-2007-5.ch004
Cite Chapter Cite Chapter

MLA

Shams Al Ajrawi, et al. "Functions." Advancements, Applications, and Foundations of C++, IGI Global, 2024, pp.160-216. https://doi.org/10.4018/979-8-3693-2007-5.ch004

APA

S. Al Ajrawi, C. Jennings, P. Menefee, W. Mansoor, & M. Alaali (2024). Functions. IGI Global. https://doi.org/10.4018/979-8-3693-2007-5.ch004

Chicago

Shams Al Ajrawi, et al. "Functions." In Advancements, Applications, and Foundations of C++. Hershey, PA: IGI Global, 2024. https://doi.org/10.4018/979-8-3693-2007-5.ch004

Export Reference

Mendeley
Favorite

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.

Request Access

You do not own this content. Please login to recommend this title to your institution's librarian or purchase it from the IGI Global bookstore.