Data Structures Question:

Is Pointer a variable in data structure?

Data Structures Interview Question
Data Structures Interview Question

Answer:

Yes, a pointer is a variable and can be used as an element of a structure and as an attribute of a class in some programming languages such as C++, but not Java. However, the contents of a pointer is a memory address of another location of memory, which is usually the memory address of another variable, element of a structure, or attribute of a class.


Previous QuestionNext Question
How many parts are there in a declaration statement using data structures?What is significance of ” * ” ?