String operations with pointers

 

Program showing various operations on string(functions implemented
with pointers).
functions implemented:
(1) Reversing a string
(2) Palindrome
(3) Copy
(4) String comparison
(5) Searching a string(substring) 
Output

1)Reverse the Given String
2)Check for palindrome
3)Copy
4)String Comparison
5)String Searching(substring)
6)Quit

Enter Your Choice:1

Enter a String:India

Result=aidnI

press a Character !!!!!!
1)Reverse the Given String
2)Check for palindrome
3)Copy
4)String Comparison
5)String Searching(substring)
6)Quit

Enter Your Choice:2

Enter a String:India

Not a palindrome

press a Character !!!!!!
1)Reverse the Given String
2)Check for palindrome
3)Copy
4)String Comparison
5)String Searching(substring)
6)Quit

Enter Your Choice:2

Enter a String:madam

A palindrome

press a Character !!!!!!

1)Reverse the Given String
2)Check for palindrome
3)Copy
4)String Comparison
5)String Searching(substring)
6)Quit

Enter Your Choice:3

Enter a String:Asia

Result=Asia

press a Character !!!!!!
1)Reverse the Given String
2)Check for palindrome
3)Copy
4)String Comparison
5)String Searching(substring)
6)Quit

Enter Your Choice:4

Enter 1st string:India

Enter 2nd string:Asia

1st>2nd

press a Character !!!!!!
1)Reverse the Given String
2)Check for palindrome
3)Copy
4)String Comparison
5)String Searching(substring)
6)Quit

Enter Your Choice:5

Enter 1st string:Pacific

Enter 2nd string:c

string found at location:3
string found at location:7

press a Character !!!!!!
1)Reverse the Given String
2)Check for palindrome
3)Copy
4)String Comparison
5)String Searching(substring)
6)Quit

Enter Your Choice:6