Hey there I have this function:
void vdCleanTheArray(int (*Gen_Clean)[25])
{
}
I wanted to know what kind of array does it accepts and clear it.
Sorry, I have a little knowledge in c++, someone just asked me.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It accepts an array declared as
which should be passed “by pointer”, i.e. by applying the
&operator to the arrayAs for how to clean it… As I understand, it is the above function that should clean it and you are supposed to write it, right? Well, inside the function you access the array by using the dereference operator
*as inand you just “clear” it as you would clear any other array. Depends on what you mean by “clear”. Fill with zeros? If so, then just write a cycle from 0 to 24 (or to
sizeof *Gen_Clean / sizeof **Gen_Clean) that would set each element to zero.