jeudi 10 août 2017

Testing Pointer Functions in C

I have to make functions similar (but more complex) than these, we aren't running them, just ensuring these pointers are receiving the values given. Are there any quick easy ways to test and make sure we are doing these types of problems correct? My issue is, what kind of parameter could I pass into this function to test it.

int     function(int *n)
{
    *n = 3;
}

Aucun commentaire:

Enregistrer un commentaire