What will be the output of the following code ?
#include stdio.h  
#include string.h
int main()
{
char str[40];
printf (" \n Enter a string to be reversed: ");
scanf ("%s", str);
printf (" \n After the reverse of a string: %s ", strrev(str));
return 0;
}

Given String is AMBULANCE !

Posted on by