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
4
_____✨ HEY MATE ✨______
➡️Option (C) It should be both declared and initialized. is the right answer ✔️
➡️Option (C) It should be both declared and initialized. is the right answer ✔️
Answered by
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
World Languages,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago
Physics,
1 year ago