// ReverseInPlace.cpp : Defines the entry point for the console application. #include "stdafx.h" #include "string.h" #define SPACE 32 void SwapInPlace(char* a, char* b) }
output:
SRC: Reverse A Sentence In Place Absolutely a a DES: a a Absolutely Place In Sentence A Reverse SRC: Reverse A Sentence In Place Absolutely a a