Just send a private message to a moderator or moderators and ask that they edit the post for you.
Just send a private message to a moderator or moderators and ask that they edit the post for you.
So long as your submission has a "with help from cprogramming.com", and a link to the thread, you should be OK. It's not like there's a complete answer (you did all the work, we just gave hints).
Then it becomes your classmate's problem to justify why both answers are the same.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.