Computer Science, asked by Aman73420, 4 days ago

Write a cprogram to check if the address of the inputted array is a palindrome or not

Answers

Answered by harshilmehra1308
0

Answer:

Initialise flag to unset int flag = 0.

Loop the array till size n/2.

In a loop check if arr[i]! = arr[n-i-1] then set the flag = 1 and break.

After the loop has ended, If flag is set the print “Not Palindrome” else print “Palindrome”

Explanation:

mark me as brainlist

Similar questions