Data Structures Question:
Download Questions PDF

Is Pointer a variable in data structure?

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.

Download Data Structures Interview Questions And Answers PDF

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