Use for loop
declare string array str[] and string variable
l= string length of string array
j=l
for i=0 to i=l/2 then
temp=str[i]
str[i]=str[j-1]
str[j-1]=temp
j=j-1
now print str array it will be reversed
Copyright © 2026 eLLeNow.com All Rights Reserved.