what is the use of pointers

Answer Posted / ramudu a

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.
3.)Pointers allow you to dynamically request memory to store off information for use later.
4.)They allow you to create linked lists and other algorithmically oriented data structures.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pre-emptive data structure and explain it with example?

3213


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1602


What is the right way to use errno?

622


What is a pointer and how it is initialized?

610


Compare interpreters and compilers.

640






How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4906


Write a program to identify if a given binary tree is balanced or not.

688


What is a file descriptor in c?

563


Why does not c have an exponentiation operator?

629


What is the Purpose of 'extern' keyword in a function declaration?

655


Explain can you assign a different address to an array tag?

648


Write a program to check armstrong number in c?

636


How can you find the exact size of a data type in c?

602


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2985


develop algorithms to add polynomials (i) in one variable

1746