Answering some c programming questions

Attached is the question that I would like you to answer. For the question that is asking for diagram, you can write it in a paper and then take a picture of it. Also,  I don’t mind if you would like to do the same for all questions. However, make sure the hand writing is clear to read and copy because  I’m going to copy it in a piece of paper too.  

I need this assignment to be done within 8 hours from now.

Thanks