News

Reversing a string is a technique so that the 1st character becomes the last character and so on. Suppose we have a string called “prepinsta” so we have to find reverse of that string is “atsniperp” ...
//Function to reverse a segment of the string void reverse(char* str, int start, int end) { while(start < end) //condition to check character upto end { char temp ...