Question: Question 5 : [ 3 marks ] Using Stack both functions push ( ) and pop ( ) . Implement the Boolean function is _

Question 5: [3 marks] Using Stack both functions push() and pop(). Implement the Boolean function
is_palindrome, that takes and array of characters then returns true if the characters are palindrome e.g.
{'m',?'a',?'d',?'a',?'m'} and false if it is not, e.g.{'m',a',?'d',?'a',?'r'}.
bool is_palindrome(char word[], int size)
note:
1- The implementation must include push() and pop() function for at least half of the elements in
array word[] to be considered for partial marks.
2- You need to declare StackArray
 Question 5: [3 marks] Using Stack both functions push() and pop().

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!