Posts

Showing posts with the label string reverse

C program String Reverse and palindrome

A array of characters enclosed by double quote and delimited by a NULL character is called string. The string is transformed into reverse string without using build-in function by this c programming given below. char name[20] = "dennis ritchie"; String Reverse string reverse - read a character by character from last to first index and copy it into another character array and finally add NULL character (delimiter) at end of the string ------------ "dennis ritchie" ----> | Reverse | ---> "eihctir sinned" ------------ String Reverse - C programming code The C program transform a given string into reverse string . The input string is to reverse read from user and prints reversed string as result of the program. # include <stdio.h> # include < str...