Program 5

Reentrant Programming

Due: Monday, April 6

 

Write a reentrant program that uses a function to determine if a string is a palindrome or not.  This project should have no declared variables (it can have declared constants). 

It needs to read in a string (placing it on the stack) of at most 30 characters, determine the length of the string and then determine if it is a palindrome or not.  The palindrome function should return a 0 (not a palindrome) or 1 (it is a palindrome) to the main that prints out the proper answer.