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 |
In which category does main function belong??
sum of two integers values only other then integer it should print invalid input.
write a program that will accept two integers and will implement division without using the division operator if the second value is an odd number and will implement multiplication without using multiplication operator if the second value is an even number.
How we can insert comments in a c program?
What is the process of writing the null pointer?
declare afunction pointer to int printf(char *)?
Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.
i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement
Differentiate between declaring a variable and defining a variable?
Juxtapose the use of override with new. What is shadowing?
what is difference between array of characters and string
What is variable in c with example?