Node:Questions 20, Previous:Further data structure examples, Up:Data structures



Questions 20

  1. What is the difference between a structure and a union?
  2. What is a member?
  3. If foo is a structure variable, how would you find out the value of its member bar?
  4. If foo is a pointer to a structure variable, how would you find out the value of its member bar?
  5. How are data usually linked to make a complex data structure?
  6. Every structure variable in a complex data structure must have its own variable name. True or false?
  7. How are the members of structures accessed in a data structure?
  8. 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?