How to pass in an array/struct as argument
Hey I'm having trouble understanding my error message
"incompatible type for argument 1 of ‘makeDateString’"
The function in question has the declaration
void makeDateString(const DateTime *dateTime, char *buff)
and I'm calling it using the output from a function with a return type DateTime(#defined tm struct). Should I only pass a pointer in? It came up with a lot more errors when I tried the "&" operand.
Also what is the difference between an argument and a parameter?
Thanks