Program to reverse the position of words

 Program to reverse the position of words in a given spaced string.

example :

 input: my name is ayush

output: ayush is my name

input: you go there i will here

output : here will i there go you

..........................................................................................................................................................................

....................................................................................................................................................................


connect with me on

Comments

Popular posts from this blog

Chomsky's hierarchy Explanation :

EV Minimize Array Cost asked in Infosys- march 2022 (available in c++ only)

Given an array A, find the size of the smallest subarray asked in MountainBlue, 2022