Tweak155
Lifer
- Sep 23, 2003
- 11,448
- 262
- 126
Just throwing this out there, but the point of the exercise, coming near the beginning of the term as it does, is likely to see if the students understand and can use nested for loops.
In that context, Tweet's solution is probably the most appropriate since if the OP started using pointer arithmetic, when pointers have likely not been covered yet, would be a little suspect. Of course, he should have discussed the solution rather than just typing it in like that.
Equally of course, he should have used code tags...everyone knows this.
While I appreciate the comment, I don't recommend using any more time than I have trying to explain it was just a homework problem. Thanks though.
I especially like being called Tweet. Haha.
And on writing it out, yeah I agree. I felt for the guy, ever been in a similar situation? I'll just make sure not to do it again as per the mod lol.