Introduction to Pointers - PowerPoint PPT Presentation

About This Presentation
Title:

Introduction to Pointers

Description:

Know how Pointers fit into your coding routine and make things easier. Also, get assistance to master in Pointers with Pepcoding – PowerPoint PPT presentation

Number of Views:67
Slides: 9
Provided by: Pepcoding1
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Pointers


1
Introduction
To
Pointers
2
  • 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.

3
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.

4
  • 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.

5
  • 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.

6
  • 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.

7
  • 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.

8
  • 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_at_pepcoding.com
  • Call 91 11 4019 4461
Write a Comment
User Comments (0)
About PowerShow.com