#include<stdio.h>
void reverse(char str[]);
int main()
{
char str[100];
int i;
printf("Enter to reverse : ");
scanf("%s",str);
reverse(str);
return(0);
}
/* Function */
void reverse(char str[])
{
int i;
for(i=99;i>=0;i--)
{
printf("%c",str[i]);
}
putchar('\n');
}
Why there is a runtime error in the above programme..........
help!!!!!!
URJENT!!!!!!!!