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.
Repeat Exercise 4 but move the functions so they are
member functions of the struct, and test again.
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.
Repeat Exercise 4 but move the functions so they are member functions of the struct, and test again.