/* immediately return on single letter string as all single letter strings are palindromes -- saves CPU time as programme does not need to enter the loop */
if(num_to_parse ==1){
returntrue;
}
for(int i=0; i<num_to_parse; i++){
int point_end = num_to_parse - i -1;
if(inputString[i]== inputString[point_end]){
continue;
}elseif(i == num_to_parse){
returntrue;
}else{
returnfalse;
}
}}
int main(){
// Change the value of inputString to test different palindromes
string inputString ="caabaac";
printf("%s", is_palidrome(inputString)?"This is a palindrome.":"Not a palindrome.");// ternary: test condition ? return this if true : return this if false