Maranion / Festo_repo

0 stars 0 forks source link

Chapter 4 Task 4 #47

Open Maranion opened 3 years ago

Maranion commented 3 years ago
  1. Create a struct with a single int data member, and two global functions, each of which takes a pointer to that struct. The first function has a second int argument and sets the struct’s int to the argument value, the second displays the int from the struct. Test the functions.

  2. Repeat Exercise 4 but move the functions so they are member functions of the struct, and test again.