Search
Search Results
-
Pointers
You had a glimpse of pointers in the last chapter and just a small hint at what you can use them for. Here, you’ll delve a lot deeper into the... -
Function Pointers
Functions are not variables, but we can still have pointers to functions or function pointers. For example, if we have a simple function:... -
Pointers
Data is stored in computer memory. The CPU reads from and writes to this memory. In simple terms, computer memory is an array of cells called bits.... -
Pointers
This chapter introduces pointers. We rewrite our arithmetic program from Chapter 1 using pointers, use the GDB debugger to execute instructions... -
Pointers
This chapter introduces pointers. We rewrite our arithmetic program from Chapter 1 using pointers, use the GDB debugger to execute instructions... -
Pointers
Objects reside in memory. And so far, we have learned how to access and manipulate objects through variables. Another way to access an object in... -
Smart Pointers
Smart pointers are pointers that own the object they point to and automatically destroy the object they point to and deallocate the memory once the... -
Where to Use Pointers?
In this chapter, we discuss several pointers use cases, including the use of pointers as function parameters. -
Pointers and References
The concepts of pointers and references have similarities, which is why we have put them together in a single chapter. Pointers are important because... -
Pointers to Memory
This chapter looks at pointers in greater detail, considering different byte memory granularity. We also discuss issues related to abnormal defects,... -
Pointers to Memory
This chapter looks at pointers in greater detail, considering different byte memory granularity. We also discuss issues related to abnormal defects,... -
Reconstructing a Program with Pointers
In this chapter, we use our assembly language knowledge to reconstruct C and C++ code that uses pointers. We also compare the disassembly of the... -
Reconstructing a Program with Pointers
In this chapter, we use our assembly language knowledge to reconstruct C and C++ code that uses pointers. We also compare the disassembly of the... -
Basic Types, Values, and Pointers
In this chapter, I begin to describe the Go language, focusing on the basic data types before moving on to how they are used to create constants and... -
Function Pointers
We now leave data structures for a spell to talk about something new: pointers to functions. Like pointers to data, pointers to functions give us a... -
Pointers
You can store the address of an object in another object, and this is where we get to pointers. A pointer is a variable that stores memory addresses... -
Pointers
Data is stored in computer memory. The CPU reads from and writes to this memory. Computer memory, in simple terms, is an array of cells, where each... -
Function Pointers
Functions are not variables, but we can still have pointers to functions or function pointers. For example, if we have a simple function:... -
A Fine-Grained Semantics for Arrays and Pointers Under Weak Memory Models
Developers of concurrent code for multicore architectures must navigate weak memory models (wmms) – either directly at the hardware/assembly level or... -
Aggregates and Pointers
This chapter focuses on arrays and structures, which are C’s primary aggregate types. Arrays aggregate variables of the same type, whereas structures...