Pointer in C language with example | Gujarati Ma | ગુજરાતી માં


  


In the C programming language, think of a pointer as a special kind of variable that can "point to" or remember the memory address of another variable. Imagine you have a bunch of boxes (like storage boxes) in your computer's memory, and each box has its own unique number. A pointer is like a note that tells you the number of a specific box. Let's say you have a regular variable that holds a number, like "x." A pointer can be used to remember where this "x" is stored in memory by storing its box number. This way, the pointer doesn't store the actual number but just the information about where to find the number in memory. Pointers are useful because they allow you to indirectly work with the data in memory without moving the data around. You can use the pointer to access and modify the value stored in the box without directly using the variable's name. So, in simple terms, a pointer in C is like a special note that helps you remember where a certain piece of information (like a number) is kept in your computer's memory, so you can work with it more efficiently. A pointer is defined as a derived data type that can store the address of other C variables or a memory location. We can access and manipulate the data stored in that memory location using pointers.

Post a Comment

Thanks for comment.

Previous Post Next Post