A pointer is…………..
a) A keyword used to create variables
b) A variable that stores address of an instruction
c) A variable that stores address of other variable
d) All of the above
Explanation: A Pointer is a special variable which is used to store the address of another variable.
It is used to save memory space and achieve faster execution time.
The operator used to get value at address stored in a pointer variable is
a) *
b) &
c) &&
d) ||
The operators used with pointers are....?
a) + and/
b) & and +
c) & and *
d) All of the above
Which one is the address operator in following?
a) &
b) &&
c) *
d) +
Which of the following operator is not used with pointers?
a) *
b) &
c) ->
d) >>
Which operation is not allowed on pointers?
a) Incrementing a pointer variable
b) Adding a number to pointer variable
c) difference of two pointer variables
d) multiplication of pointer variable by number