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

wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


Tell us the use of fflush() function in c language?

0 Answers  


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

0 Answers  


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

0 Answers  


list the no of files created when c source file is compiled

9 Answers   TCS,






Why clrscr is used after variable declaration?

0 Answers  


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

0 Answers  


Why does this code crash?

0 Answers  


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

0 Answers  


What are operators in c?

0 Answers  


main() { printf("hello"); fork(); }

0 Answers   Wilco,


What is the function of multilevel pointer in c?

0 Answers  


Categories