Which statement is true about an uninitialized pointer?
A) It may point to a memory location that a program does not own
B) It always has the value null
C) It will always point to a memory location that a program owns
D) It will never cause a problem in a program
Ans: A
Title: Which statement is true about an uninitialized pointer?
Difficulty: Easy
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;
- Which of the following statements is true about pointers?
- A pointer describes which of the following?