80 likes | 96 Views
Know how Pointers fit into your coding routine and make things easier. Also, get assistance to master in Pointers with Pepcoding <br>
E N D
Introduction To Pointers
A Pointer is a variable that is used to store addresses or references to other data. Also used to refer to the function of another pointer. It can be increased or decreased, pointing to the next or previous memory location. The pointer's function is to save memory space and speed up execution time.
Types of Pointers Null Pointer: A pointer that is not assigned any value but “NULL” is called a NULL pointer. Void Pointer: A pointer is known as a void when it is not associated with any data type.
Wild Pointer: When pointers are uninitialized and may cause a program to crash are known as wild pointers. Dangling Pointer: A pointer is known as a dangling pointer when it points to a memory location that has been deleted. Complex Pointer: When a pointer is used to declare and define the function, it is known as Complex Pointer.
Near Pointer: Near pointer is utilized to bit addresses within a given section of the computer memory. Far Pointer: When a pointer can access memory outside the current segment it is known as a far pointer. Huge Pointer: A pointer is known as a huge pointer when it can point to any segment in the memory.
Pointers are used to store and maintain the addresses of memory blocks that are dynamically allocated. It takes less time in program execution. Moreover, with the help of pointers, we can create Data Structures (linked-list, stack, queue). Also, we can search and sort large data very easily.
To assist newcomers with the best resources, we at Pepcoding offer Free content on many topics, including DSA, Web Development, OS, Pointers in C, System Design, and more.
Prepare yourself for your Coding Interview as well as get Placement opportunities in top Product Based companies. Know more about our Free Resources, Visit Pepcoding! Mail: contact@pepcoding.com Call: +91 11 4019 4461