Programming Languages
C
Subjective
Mar 15, 2013
Write a script to reverse a string without using Perls built in function?
Detailed Explanation
my $i;
my $str="hello";
my @str=split('',$str);
for($i=$#str;$i>=0;$i--)
{
print $str[$i];
}
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts