What is true about the statement given below?
int* choice;
A) choice is an integer variable
B) choice contains the memory location of an integer variable
C) choice can store two memory addresses simultaneously
D) choice can also store a string value
Ans: B
Title: What is true about (variable declaration)?
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?
- Which of the following statements is true about pointers?
- A pointer describes which of the following?
- Which statement is true about an uninitialized pointer?