Qualcomm Interview Question

Write a C Program to reverse the words in a sentence

Interview Answer

Anonymous

Jun 15, 2017

I used pointer arithmetic to solve the problem. First I reversed the characters in the whole sentence and then in the next step, each word was reversed.

1