Podcast
Questions and Answers
What is the value of 'str' in the given code snippet?
What is the value of 'str' in the given code snippet?
- 'H'
- ' '
- 2000
- 6000 (correct)
What type of operator is used to obtain the address of a variable in C++?
What type of operator is used to obtain the address of a variable in C++?
- & (correct)
- *
- ->
- =
What is the term used for the value 'str' pointing to the memory location of a char?
What is the term used for the value 'str' pointing to the memory location of a char?
- Dynamic data
- Reference type
- Pointer constant (correct)
- Integral data
When a variable is declared in C++, what is allocated for it at an unused memory location?
When a variable is declared in C++, what is allocated for it at an unused memory location?
What is the output of 'cout << &y' in the given C++ code snippet?
What is the output of 'cout << &y' in the given C++ code snippet?