Which of the following statements is true about pointers?
A) Pointers contain values as well as addresses of variables.
B) Pointers contain address locations of variables.
C) Pointers do not have any address location of their own.
D) Pointers occupy permanent storage locations inside the hard disk.
Ans: B
Title: Which statement is true about pointers?
Difficulty: Medium
Pointers
- Consider the code snippet below. int ch = 100; Which of the following is a legally correct way of obtaining the memory location of ch and printing it (the memory location) to standard output, based on the given code snippet?
- Which of the following is a legally correct way of declaring a variable that is a pointer to an integer?
- What is true about the statement given below? int* choice;
- A pointer describes which of the following?
- Which statement is true about an uninitialized pointer?