string palindrome (without function)

Program to check String Palindrome without using function

ALGORITHM:

    1. INPUT string, str[100]
    2. Reverse string str[100] and store in rev[100]
    3. CHECK if reversed string, rev[100]=input string, str[100]
      PRINT String is palindrome
      else
      PRINT String is not a palindrome

C SOURCE CODE:

Leave a Reply

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