C code to reverse words in place in a string

C program to reverse words in place in a string:

Approach :

Step1: Reverse the whole string

Step2: Reverse the characters in words

e.g.

Before Rev Old: [I am a good coder]

After Rev: [redoc doog a ma I]

New: [coder good a am I]