fork(1) download
  1. #include <stdio.h>
  2. int main(void) {
  3. char str1[] = "\n\t\\\"";
  4. char *str2 = "#include <stdio.h>%cint main(void) {%cchar str1[] = %c%cn%ct%c%c%c;%cchar *str2 = %s;%cprintf(str2,str1[0], str1[0], str1[2], str1[2], str1[2], str1[2], str1[3], str1[3], str1[0], str2, str1[0], str1[1], str1[0], str1[0]);%c%creturn 0;%c}";
  5. printf(str2, str1[0], str1[0], str1[2], str1[2], str1[2], str1[2], str1[3], str1[3], str1[0], str2, str1[0], str1[1], str1[0], str1[0]);
  6. return 0;
  7. }
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
#include <stdio.h>
int main(void) {
char str1[] = \\n\t\"";
char *str2 = #include <stdio.h>%cint main(void) {%cchar str1[] = %c%cn%ct%c%c%c;%cchar *str2 = %s;%cprintf(str2,str1[0], str1[0], str1[2], str1[2], str1[2], str1[2], str1[3], str1[3], str1[0], str2, str1[0], str1[1], str1[0], str1[0]);%c%creturn 0;%c};
printf(str2,str1[0], str1[0], str1[2], str1[2], str1[2], str1[2], str1[3], str1[3], str1[0], str2, str1[0], str1[1], str1[0], str1[0]);	
return 0;
}