Created
July 23, 2014 06:51
-
-
Save nrubin/811c27000adffcd3328b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main (void){ | |
int n = 10000; | |
char* s1 = (char *) malloc(sizeof(char) * n); | |
char* s2 = (char *) malloc(sizeof(char) * n); | |
strcpy(s1,"Hello World!"); | |
strcpy(s2,strcat(s1,s1+1)); | |
printf("%s",s2); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original version
Nathan's Version