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-

  1. Pointer reduces the code and improves the performance.
  2. pointers supports c++'s dynamic allocation.
  3. Pointer allows the access to the memory location in the computers's memory.
  4. We can return multiple values from function using pointers.
Usage and Handling- location has an address and holds a content. The address is a numerical number,which is hard for programmer to use directly.
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.

                     ðŸ”œ

Comments

Popular posts from this blog

Covid-19 Analysis and Visualization using Plotly Express

Artificial Intelligence (Problem Solving)

Linear Regression