Changing Pointer Values in C | Multiple Pointers & sizeof Pointer Explained @LearningLad
Changing Pointer Values in C | Multiple Pointers & sizeof Pointer Explained  @LearningLad
Uploaded November 2026 | Updated November 2026, 2 days ago
Learn how to change Pointer Values in C programming, make pointers point to different objects, create multiple pointers to the same object, and use the sizeof operator to determine the size of pointer variables.

In this tutorial, we first understand how a Pointer Variable can be assigned a different memory address after initialization. Using two integer variables, we demonstrate how a Pointer to int can initially point to one variable and later be changed to point to another variable.

We use Pointer Dereferencing to access the values of these variables and observe how the value obtained through the pointer changes when the pointer is assigned a different address.

Next, we discuss how multiple pointers can point to the same object in memory. We create two Pointer to int variables and initialize them with the address of the same integer variable.

We also explore Pointer Assignment, where the value stored in one pointer variable is assigned to another compatible pointer variable. This allows both pointers to refer to the same object.

After that, we use Pointer Dereferencing to modify the value of the shared object through one pointer and observe how the updated value can be accessed through the other pointer.

Finally, we learn how to use the sizeof operator to determine the number of bytes occupied by a Pointer Variable. We demonstrate both sizeof(ptr) and sizeof(int *) and compare the sizes of different Pointer Types, including int *, double *, char *, and void *.

In our example, all these Pointer Types occupy 8 bytes on the demonstrated system. We also understand that pointer sizes depend on the implementation and are not necessarily the same on every system.

Our Website
LearningLad.com

Social Media
Facebook facebook.com/LearningLad
Twitter twitter.com/LearningLadEdu
Instagram instagram.com/LearningLadOfficial
Changing Pointer Values in C | Multiple Pointers & sizeof Pointer ExplainedC Pattern Programs | Printing Stars in Hollow Right Triangle Shape | Tutorial for BeginnersAnonymous Structures in C Programming Language | Tutorialconst Keyword in C Explained | Read-Only Variables, Arrays, Scope & LifetimeWhat are Constants Keywords DataTypes in C Programming LanguageHow to Download and Install Visual Studio Code in Windows 11 Laptop  ComputerHow to Download and Install Python Latest Version In Windows 11 Computer ( Step By Step Tutorial )Recursion in C Explained | Recursive Functions, Base Case & Call StackC Programming: How to Check Memory Size for Different Data Types | sizeof Operator ExplainedGlobal Variables in C Explained | Scope, Lifetime, Default Value & ShadowingHow to Set Up Visual Studio Code for Running C ProgramsStructure Pointer, using Dot vs Arrow Operator | C Programming Language Tutorial
LearningLad |

Changing Pointer Values in C | Multiple Pointers & sizeof Pointer Explained

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER