#include using namespace std; int length(char input[]){ int count = 0; for(int i=0;input[i] != '\0' ;i++){ count++; } return count; } void reverse(char input[]){ int s = 0; int e = length(input) - 1; while(s < e){ swap(input[s] , input[e]); s++; e--; } } int main(){ char name[100]; cout<<"Enter your name : "; cin.getline(name,100); /*name[1] = '\0'; name[3] = 'd'; name[4] = 'x'; */ cout<<"Your name is "<