Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AvinandanBose authored Aug 20, 2022
1 parent 4a4d9e8 commit eff46bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Its an intermediate guide series on C++
<h3> Suppose integer i = 10 which has address in the memory location FFFF4 and *p is a pointer which assigned to address of integer i through & → address operator. Now if we makes output of *p we get 10 i.e *p which contains address of i i.e. FFFF4 points to that address and fetch the value from that address. </h3>

<h3><ins>Dereferencing operator(*)/Indirection Operator(*)</ins> :→ Dereferencing is an operation performed to access and manipulate data contained in the memory location 'pointed to' by a pointer. The operator '*' is used to deference pointers. </h3>
<img src="https://user-images.githubusercontent.com/38869235/185744259-3dba41c1-7c5e-41fc-93b8-8ae2c0686123.png">
<ul>
<li> <strong> <a href="https://github.com/AvinandanBose/C_Plus_Plus_Intermediate/blob/main/1_Pointers.cpp"> 1. Pointer(Example 1)</a> </strong></li>
</ul>
Expand Down Expand Up @@ -394,6 +395,7 @@ p = a / p ; //Illegal use of Pointer
`````
<h1>Pointers to Pointers</h1>
<h3>Where pointer (*ptr) store the address of a variable say var where data is stored say 10 . Then **ptrptr(Pointers to pointers) store address of that pointer (*ptr)and use it as a reference to fetch data from variable var through (*ptr).</h3>
<img src="https://user-images.githubusercontent.com/38869235/185744441-218882dd-ae12-4c4e-b729-c3aadb2a761e.jpg">
<ul>
<li> <strong> <a href="https://github.com/AvinandanBose/C_Plus_Plus_Intermediate/blob/main/PointerToPointers_1.cpp"> Simple Pointers To Pointer (Example -1)</a> </strong></li>
</ul>
Expand Down

0 comments on commit eff46bc

Please sign in to comment.