C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 7)
7.
A pointer is
A keyword used to create variables
A variable that stores address of an instruction
A variable that stores address of other variable
All of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
33 comments Page 4 of 4.

Mukesh Kr Siddhwan said:   10 years ago
Pointer is a specific type of variable that can be used to store the address of other variable. It is always denoted by '*' operator.

Some Features of pointer:

1. Pointer save the memory space.

2. Execution time with pointer is faster because data is manipulated with the address. i.e., direct access to memory location.

Pointer declaration:

Data type *pointer name;.

For example:

void main()
int a=100;
int *p;
p=&a;

In above example 'a' is the integer type of variable and 100 ia the value of that variable. *p is the pointer name. Suppose 4066 is the address of variable 'a'.

In above example p=&a;-in this code pointer p can be use to store the address of variable 'a', means the value of pointer p is 4066 (that is the address of variable 'a').
(1)

Ramya said:   9 years ago
Can anyone tell me pointer is a variable or operator?
(1)

Parth said:   8 years ago
Pointer is a special type of variable which stores address of another variable of same type.


Post your comments here:

Your comments will be displayed after verification.