View Code of Problem 114

#include<stdio.h>
#include<string.h>
int main()
{
    char s[1000];
    while(~scanf("%s",s))
    {
    	strrev(s);
    	printf("%s ",s);
	}
    return 0;
}
/*
Main.c: In function 'main':
Main.c:8:6: warning: implicit declaration of function 'strrev' [-Wimplicit-function-declaration]
      strrev(s);
      ^
/tmp/cccXM305.o: In function `main':
Main.c:(.text+0x1d): undefined reference to `strrev'
collect2: error: ld returned 1 exit status
*/

Double click to view unformatted code.


Back to problem 114