I have this method:and i am asked to use assert to check that val is between 1 and 9 inclusive.Code:void setvisible(Cell * C, int val)
I wroteCan someone please let me know if this is right, and if so what it actually does.Code:assert( (val >= '1') && (val <= '9') );
Thanks