Am still pretty new to all this and being a very mature student the old brains cells seem to work much slower!!
My program needs to
1. create a pointer to point to an array of a struct!
2. Get imput from the user for each element and iterate over the array using the pointer and print the results out.
3. print out the total value of each item and then the grand total of the value of all stock.
I believe i have created the array of the strcut correctly! and have just set the array at 2 elements.
I am not sure if the pointer syntax is correct?
Also when the results print out it prints out the results once and then ask for input again and prints out the array results -can someone help explain why and possibly what i can do to amend this - thank Andy
code below