Node:Questions 20,
Previous:Further data structure examples,
Up:Data structures
Questions 20
- What is the difference between a structure and a union?
- What is a member?
- If
foo
is a structure variable, how would you find out the value of
its member bar
?
- If
foo
is a pointer to a structure variable, how would you find
out the value of its member bar
?
- How are data usually linked to make a complex data structure?
- Every structure variable in a complex data structure must have its own
variable name. True or false?
- How are the members of structures accessed in a data structure?
- Write a small program to make linked list that contains three nodes
long and set all their values to be zero. Can you automate this
program with a loop? Can you make it work for any number of
nodes?