i'm supposed to create a function that checks if an inouted word or number is a palindrome( same forwards and backwards i.e bob )...the only problem that i see in my program is getting the number backwards...

my problem is in my for loop below...

for( i = 0 ; i <= amt ; i++ )
backwards[ i ] = input[ amt - i ] ;

what happens is the null byte becomes the backwards[ 0 ], because it is the last element in the array input...how do i get the null byte to be the last element of the array?