What would you like to do?

What are the uses of pointers?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

The main advantages of using pointers are
1.) Function cannot return more than one value. But when the same function can modify many pointer variables and function as if it is returning more than one variable.
2.) In the case of arrays, we can decide the size of the array at runtime by allocating the necessary space.
C has a minimum number of fundamental data types - a single character, a single integer or float, and a few derived data types such as a structure, an enumerated list, and an array. If you want to do much more than that, you make use of pointers.

Pointers allow you to dynamically request memory to store off information for use later. They allow you to create linked lists and other algorithmically oriented data structures.
10 people found this useful
Thanks for the feedback!

What are the uses of pointers in c?

Pointers are used (in the C language) in three different ways: To create dynamic data structures.To pass and handle variable parameters passed to functions.To access informati

When do you use function pointers in C?

One of the big uses for function pointers in C is to call a function defined at run-time. For example, the C run-time library has two routines, qsort and bsearch, which take a

What are the drawbacks of using pointers in C?

The main drawback is that they're a bit more difficult to use than references. References always point to valid data (they can never be NULL), but pointers may be NULL or may

Use of double pointer?

  A double pointer has two basic meanings. One is of a pointer to a pointer, where changing the value of double pointer will result in the original pointer being changed.

What is pointer and use of pointer?

A pointer looks a bit like a stick. I use it to point at something. Read your text book, read C tutorials on the web and if you still cannot answer the question consider flo

Why don't you use pointers in Java?

  You do not use pointers in Java because the language designers decided to abstract memory management to a higher level in Java than in C. The reason for this is that it

What is the main use of the function pointer?

Function Pointers are basically used when we want to select a function which is to be used dynamically at run time.    Function pointers are the only way for "Interept pro

What is the use of double pointers in C?

A double pointer in C or C++ ... int ** ppi; ... simply means that ppi is a pointer that points to a pointer that points to an int. When defining function-parameters, an

Are laser pointers illegal in the US?

  Laser pointers are not illegal in America as long as the output is no greater than 5mW (milliwatts).   That does NOT mean they are completely safe. If you expose the

What is the reason using pointer in c?

We can use pointers in user defined functions, the reason behind is we can access the actual parameters indirectly by using pointers. And also we can reduce the length of a co

What is the use of this pointer in java?

Pointer is strictly avoided in java. because, java runs under JRE (Java runtime environment) which always have some memory allocated to it for execution of program , when we

Why would you use the array of pointers to pointers?

You would use an array of pointers to pointers whenever you wished to implement a dynamic multi-dimensional array of 3 or more dimensions. Every multi-dimensional array can ul
In Uncategorized

What is pointer and pointer types and uses of pointer and the meaning of pointer?

As the name suggests Pointer is used to point towards something ,here in this case it points to another variable and stored at a memory location. Pointer is a variable that st