Recursive program for a palindrome




















I have strong doubt about the more elegant part. There's nothing good in recursion, here, IMO. Be nice, and check out our Code of Conduct. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

I hope this is very helpful for you. Also Prepare C interview programs given below. C Questions on number. Write a program to reverse an integer in C.

Write a program in C to check whether an integer is Armstrong number or not. Write a program in C to print the fibonacci series using recursive method.

Write a program in C to check whether a number is palindrome or not using recursive method. Recommended Articles.

String slicing in Python to check if a string can become empty by recursive deletion. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. The second and third arguments are used to store the beginning and end positions of the string sequence. As the first condition, we evaluate if the string length is 1 , and if so, the function returns immediately with an affirmative value. Next, the first and the last characters are compared, and if not equal, the function returns false.



0コメント

  • 1000 / 1000