why do we use pointer instead directly acessing the data?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can’t constant values be used to define an array’s initial size?

838


What is the difference between abs() and fabs() functions?

609


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

668


What is the purpose of macro in C language?

665


In C, What is the #line used for?

1068






The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

716


How do I use void main?

635


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

626


What is the difference between exit() and _exit() function?

610


What is switch in c?

650


What is #define in c?

624


What is #define used for in c?

618


Are negative numbers true in c?

602


Explain how do you determine a file’s attributes?

596


Explain how can you tell whether two strings are the same?

587