what is the use of pointers

Answers were Sorted based on User's Feedback



what is the use of pointers..

Answer / 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

what is the use of pointers..

Answer / pratyusha

continuous memory allocation

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / manju

It increases the speed of excecution when there is a need
for the usage of arrays....

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / sindhu

We may return more than one value at a time to any function.

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / venkat1435@yahoo.co.in

by using pointers
1)we can pass the function arguments to another function
2)it holds the address of another function
3)it acts as a call back function

Is This Answer Correct ?    0 Yes 0 No

what is the use of pointers..

Answer / vignesh1988i

1) pointers which points to a value indirectly through that variable containing that value..... so pointers are used for data security.

2) only by using pointers through functions we can return MORE THAN ONE VALUE AT A TIME.....

3) as above told execution will be faster.....

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is use#in c

3 Answers  


Write a program to print the prime numbers from 1 to 100?

7 Answers  


What is the difference between mpi and openmp?

0 Answers  


can we print any string without using terminator?

2 Answers   Infosys, TCS,


Explain the use of function toupper() with and example code?

0 Answers  






What is the use of ?: Operator?

0 Answers  


how to write a c program to print list of fruits in alpabetical order?

0 Answers  


Write a program which returns the first non repetitive character in the string?

0 Answers   Expedia,


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

0 Answers  


Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)

1 Answers   NetApp, PTU, Wipro,


can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 Answers  


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

0 Answers  


Categories