Save
...
Computer Programming 2
Week 7 to 8 Pointers in C++
Pointers
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Marc
Visit profile
Cards (14)
A
pointer
is a variable that stores or holds the memory address of another variable.
A pointer is a
variable
that stores or holds the memory address of another variable.
A pointer is a variable that
stores
or
holds
the memory address of another variable.
A pointer is a variable that stores or holds the
memory address
of another variable.
Key Concepts of
Pointers
:
Memory Address
Pointer Variable
Key Concepts of Pointers:
Memory Address
Pointer Variable
Memory Address
- is a unique identifier of computer memory location.
Pointer Variable
- it is a variable that is designed to store a memory address of a variable.
Why Use Pointers?
Direct Memory Manipulation
Dynamic Memory Allocation
Passing by Reference
Working with Data Structures
Why Use
Pointers
?
Direct Memory Manipulation
Dynamic Memory Allocation
Passing by Reference
Working with Data Structures
Direct Memory Manipulation
- it is more efficient in accessing and modifying the data in every variable.
Dynamic Memory Allocation
- it enables the programs to allocate memory during runtime.
Passing by Reference
- it allows modifying the data in the original variables and program efficiency.
Working with Data Structures
- it is essential in implementing dynamic data structures (flexibility of dynamic memory allocation).