The IRMA Community
Newsletters
Research IRM
Click a keyword to search titles using our InfoSci-OnDemand powered search:
|
Pointers
|
Copyright: 2024
Pages: 39
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.ch005
PurchaseView Pointers on the publisher's website for pricing and purchasing information.
|
Abstract
Chapter 5 delves deep into one of the foundational and powerful concepts in C++: pointers. The chapter embarks with an enlightening introduction, elucidating the importance and utility of pointers in programming. Readers are guided through pointer variable declaration, initialization, and are introduced to pivotal pointer operations. The nuances of pointer arithmetic and expressions unfold, paving the way for a detailed discussion on pass-by-reference mechanisms with pointers. A significant focus is given to the interplay of 'const' with pointers, elaborating on varying degrees of pointer and data constancy. The chapter then demystifies the intricate relationship between pointers and arrays, leading into the intriguing world of arrays of pointers and function pointers. The 'sizeOf' operator's interaction with pointers is explored. Practical applications emerge through bubble sort and selection sort examples utilizing pass-by-reference. Closing the chapter is an engaging segment on pointer-based string processing.
Related Content
.
© 2024.
45 pages.
|
.
© 2024.
48 pages.
|
.
© 2024.
66 pages.
|
.
© 2024.
57 pages.
|
.
© 2024.
39 pages.
|
.
© 2024.
40 pages.
|
.
© 2024.
99 pages.
|
|
|