Computer Science, asked by parthamkaushik60, 10 months ago

Which operation can be performed on
pointers?
(A) Compare two pointers
(B) Addition of two pointers
(C) Division of two pointers
(D) Multiplication of two pointers​

Answers

Answered by Anonymous
1

Which operation can be performed on

pointers?

Addition of two pointers

Answered by hotelcalifornia
0

We can perform addition of two pointer operation using pointers.

Option (B).

Explanation:

  • The pointer is an object which stores the address of a variable or another object which is a numeric value. We can perform the operation on pointers too.
  • We can correlate the two pointers which will return the result to the user whether the first pointer is greater or lesser or equal to or not equal to the second pointer.
  • We can also add two numbers using pointers which will return a normal value to the user as done in the case of adding two constants or variables which were assigned some values.
  • For example declaring the pointer by "int *ptr1, *ptr2" and printing of the pointers by   "num = *ptr1 + *ptr2".

Learn more about pointers

Why were the pointers important to navigators

https://brainly.in/question/1175140

The pointer shape that means you have to wait because computer is busy

https://brainly.in/question/943737

Similar questions