[ create a new paste ] login | about

Link: http://codepad.org/32VD3E2M    [ raw code | output | fork ]

nel - C, pasted on Oct 10:
#include <stdio.h>
#include <string.h>

int main(void)
{
	char temp[] = "!dlrow olleH";
	char str[80], *p1, *p2;

    p1 = temp + strlen(temp)-1;
	p2 = str;
	 
	while(p1>=temp) 
	{
	   *p2++=*p1--;
	}

	*p2 = '\0';

	printf("%s", str);

	return 0;
}


Output:
1
Hello world!


Create a new paste based on this one


Comments: