firstly I would like to say sorry if this is a repost, onto the question.
Im creating a function which checks certain objects inside a game loop and then returns a boolean value if the check comes back true or false, this is ran a total of 5 times inside my function. I was wondering if it is possible to return an array of all 5 of the boolean values from the function? below is an example of pseudo code which im trying to write:
Bool funcName(obj obj[])
{
for (int i = 0; i < 5; i++)
{
boolVal[i]=ChckFunc(obj[i]);
}
return boolVal[];
}
Thanks for any help