Write a very simple program that uses two for loops and ONLY pointers and pointer arithmetic (NO other variables are allowed) to display a palindrome forward then backward. Declare the palindrome as follows:
char str[] = “Straw Warts”;
I just need help where to get started I'm having a tough time
let me give you a hint...
the first for loop is to get the last posiotion of that array using pointers
and the second is to do the process...
so you will need 2 pointers
1 2 3 4 5
int *finalPosition;
int *count;
for(.........)//gets the final position of the array
for(.........;finalPosition--,count++)//carry out the function for some condition you can use the space to controll the loop..