Write a program to define a structure named CustomerRecord that contains name, account_number and balance. Use array to store 5 records of the structure. Create 2 functions: one for reading and another for printing the content of the structure in the array.
This is my code for the question.Can someone explain to me the difference of read and print function?if i make the print as a function, i cant compile it because there is an error saying that person was not declared in this scope.Can help?Thanks:)
@Disch: I know it's not best to do that. That's why I said easy fix, not best fix. I figured that if the scope issue was that confusing, then passing an array to a function would be too confusing.
I see that NULL has provided this solution though. Hopefully yts can generalize from it for his read function when he writes it.