2. Write a C++ program that determines if an integer array is a palindrome. Declare two pointers to the array. One point

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

2. Write a C++ program that determines if an integer array is a palindrome. Declare two pointers to the array. One point

Post by answerhappygod »

2 Write A C Program That Determines If An Integer Array Is A Palindrome Declare Two Pointers To The Array One Point 1
2 Write A C Program That Determines If An Integer Array Is A Palindrome Declare Two Pointers To The Array One Point 1 (37.85 KiB) Viewed 33 times
2. Write a C++ program that determines if an integer array is a palindrome. Declare two pointers to the array. One pointer points to the starting of the array, another points to the end of the array. Using these pointers determine whether the array is a palindrome. Increment the pointer, which points to the starting of the array, and decrement the pointer which points to the end of the array. The program should ask the user to enter the array size, and then creates an integer array dynamically using the entered size. The user is then asked to fill the array, which is then checked as mentioned earlier. Remember to delete the dynamic array before exiting the program.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply