Categories
Uncategorized

palindrome in c++

Compare the element at s [i] with the element at s [n-i-1].If both are equal then increase the c value. We can do it by using simple character type of arrays. Palindrome number is such number which when reversed is equal to the original number. C program to check if a string is palindrome or not using pointers. For example, 191 is a palindrome number because this number remains the same after reversing the number. Now how can we check a string that it is a palindrome or not? Palindrome number:-If the Reverse of a number is equal to the same number then the number is called a palindrome number. It returns 1 if word is palindrome … Take the initial count as 0. It can be of odd or even length. Start traversing the sentence using for loop from index 0 till i

Frigidaire Affinity Dryer Test Mode, Satay Chicken With Rice And Vegetables, Lay's Jamon - Crisps, How To Protect Marble Table, Hypophosphorous Acid Price Nz, Persian Pottery History, Shea Moisture Olive And Green Tea Shea Butter Soap, Aloe Vera Gel Available Now, Panera Southwest Chicken Tortilla Soup Ingredients,

Leave a Reply

Your email address will not be published. Required fields are marked *