Computer Science, asked by SoTy3737, 11 months ago

Choose the best answer.
Prior to using a pointer variable
A.It should be declared.
B.It should be initialized.
C.It should be both declared and initialized.
D.None of these.

Answers

Answered by Anonymous
4
_____✨ HEY MATE ✨______

➡️Option (C) It should be both declared and initialized. is the right answer ✔️

<marquee>✌️ I THINK IT HELPED YOU ✌️
Answered by amikkr
0

Prior to using a pointer variable it should be both declared and initialized (Option C).

  • The pointer variable does not store value like other variables but instead store memory addresses.
  • When a pointer variable is declared it is necessary to initialize it otherwise it will have an invalid address. Thus it is important to initialize the pointer variable with a valid address.
  • The address is assigned to a pointer variable with the help of the address-of operator.
Similar questions