What is a Pointer? What are the Advantages of Pointers

A pointer is a derived data type in C.

·         Pointer is a variable which stores the add of another variable.

·         Pointer contain memory address as their value.

·         Pointers can be used to access & manipulate data stored in the memory.

Benfits of pointers:–

1. pointers are more efficient in handling arrays & data tables.

2. Pointers can be used to return multiple values from a function via function arguments.

3. pointers permit references to functions  & there by facilitating passing of functions as arguments to other functions .

4. The use of pointers arrays to character strings results in saving of data storage space in memory.

5. Pointers allow C to support  dynamic memory management.

6. Pointers provide an efficient tool for manipulating dynamic data structures. Such as structures, linked lists, queues, stacks & trees.

7. Pointers reduce length & complexity of programs.

      8. They increase the execution speed & thus reduce the program  execution time.

Related

Write about String Handling Functions in C language?

The C library supports a large number of strings handling functions that can be used to carry out many of the string manipulations. The most commonly used string functions: 1. strcat...

Write about Constant Pointers in C

Constant Pointers A constant pointer is a pointer that cannot change the address its holding. In other words, we can say that once a constant pointer points to a variable then it cannot point to an...

What is an Array? Explain about One-Dimensional Arrays?

The fundamental data types can store only one value at any given time. To process large amounts of data, c supports a derived data type known as Array. An array can be use...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item