in the code below i m trying to reverse the string there is no compile time error but ,nothing is displayed .what is wrong ?
string string1="arunachalam";
void reverseStr()
{
for(int i=string1.length();i<0;i--)
{
cout<<string1[i];
}
}