#include using namespace std; //move the last m characters of string to the beginning of string, just like right rotate string void reverse(char* str,int m) { int i=0; int len=strlen(str); char *p=NULL,*q=NULL; p=str; q=str+len-m-1; while(p