why do we use pointer instead directly acessing the data?
Answers were Sorted based on User's Feedback
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 |
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 |
What is c method?
out put of printf(ā%dā,printf(ram));
how to build a exercise findig min number of e heap with list imlemented?
How can you determine the size of an allocated portion of memory?
void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }
5 Answers C DAC, CDAC, Infosys, Wipro,
Why clrscr is used in c?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
1 1 12 21 123 321 12344231 how i creat it with for loop??
What is the general form of #line preprocessor?
What is a Genralised LInked List?? Please give a detailed explation of it..
How do we print only part of a string in c?
Differentiate Source Codes from Object Codes