No such thing as a silly question. It just means that you haven't learned it yet. That's all. ;-)
This is a function "signature". It defines what is expected to be passed to the function.
int rank means that the first parameter must be an int, and the var name
rank is used inside the function. This should not be confused with vars anywhere else, such as in main, called rank (unless there's a global variable with that name. Then it gets interesting!) They are not the same. Similarly, the second parameter must be a string and will be called
name inside the function. Finally, the third parameter is an int array called ranks.
boolin this case means that the function will return a bool value.
Any questions? ;-)
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)