pointer variables
Pointer
A pointer is a variable that holds a memory address.It is also know as locator of indicator that points to an address of a value.
The idea behind pointers are not complicated. Here's the First Key Concept: Every bite in a computer's memory has an address.
Advantages of pointers-
- Pointer reduces the code and improves the performance.
- pointers supports c++'s dynamic allocation.
- Pointer allows the access to the memory location in the computers's memory.
- We can return multiple values from function using pointers.
To ease the burden of programming using numerical address and programmer-interpreted data,early programming language(such as C) intoduce the concept of variables.
A variable is a named location that can store a value that can store value of particular type are attached to certain addresses.Also, types
(such as int,double,char) are a numerical addresses,names associated with the contents for ease of interpretation.
🔜
A variable is a named location that can store a value that can store value of particular type are attached to certain addresses.Also, types
(such as int,double,char) are a numerical addresses,names associated with the contents for ease of interpretation.
🔜
Comments
Post a Comment