C Pointers Question:
Download Job Interview Questions and Answers PDF
Tell me with an example the self-referential structure?
Answer:
A self referential structure is used to create data structures like linked lists, stacks, etc. Following is an example of this kind of structure:
struct struct_name
{
datatype datatypename;
struct_name * pointer_name;
};
struct struct_name
{
datatype datatypename;
struct_name * pointer_name;
};
Download C Pointers Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know NULL pointer? | Explain indirection? |