I'm very very new to C so I'm having some trouble with this (and pointers):
I'm trying to pass four parameters into a function:
birthdayFunction(char birthday, int month, int day, int year);
The birthday is the string input from the user (with "/" separating each field, ex. 7/23/76) and I want to separate each field into the corresponding month, day, year variable, just so they are represented as integers. I don't want this function to have any return values, just void.
I'm thinking I have to pass the parameters' memory location (&) in the main function, and then in the birthdayFunction I have to use the pointers?
I'm sorry if that's a bit confusing!
Thanks for any help!