Code:
/*Write a program of palindrome using stack [implement stack using array]: Note: Punctuation, Capitalization, and Spaces are ignored. For Example- Poor dan is in a droop. Date : February 21,2014 */ #include <stdio.h> #include <ctype.h> #include <string.h> #include <stdbool.h> bool is_palindrome(const char* s) { int i = 0; int j = strlen(s)
Leave a comment: