why do we use pointer instead directly acessing the data?

Answers were Sorted based on User's Feedback



why do we use pointer instead directly acessing the data?..

Answer / manish

We use the pointer instead of the because of the fast
access of the data as pointer provides direct memory access.

Also, soemtimes passing the ;large structure variable in
the function argument requires large memoy stack but by
passing the pointer to the structure inside the function
will reduce the stack size.

Is This Answer Correct ?    8 Yes 0 No

why do we use pointer instead directly acessing the data?..

Answer / jitendra mishra

As we know pointer shows the address of a particular variable in the memory space.and accessing variable by its name is a bit time consuming because there can have more than one variable of same name but there can not be same address for two different variables.So pointer is more accurate and quick.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are the salient features of c languages?

0 Answers  


What is 02d in c?

0 Answers  


Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.

1 Answers  


Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms

5 Answers   Convex Digital,


What the advantages of using Unions?

0 Answers   TISL,






Does c have circular shift operators?

0 Answers  


What is the difference between i++ and i+1 ?(in terms of memory)

3 Answers   HCL,


What is the mean of function?

0 Answers  


inline function is there in c language?

4 Answers  


What are the different types of pointers used in c language?

0 Answers  


WHY DO WE USE A TERMINATOR IN C LANGUAGE?

2 Answers  


What is the benefit of using #define to declare a constant?

0 Answers  


Categories