- first version of colleen
This commit is contained in:
asus
2024-01-22 20:47:47 +01:00
parent 99ab106831
commit 22f8f19067
6 changed files with 45 additions and 0 deletions

13
Colleen.c Normal file
View File

@@ -0,0 +1,13 @@
/*comment outside*/
#include <stdio.h>
char *second_function() {
return "/*comment outside*/%c#include <stdio.h>%c%cchar *second_function() {%c return %c%s%c;%c}%c%cint main() {%c /*comment inside*/%c char *program = second_function();%c printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);%c return 0;%c}%c";
}
int main() {
/*comment inside*/
char *program = second_function();
printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);
return 0;
}

BIN
a.out Executable file

Binary file not shown.

BIN
en.subject.pdf Normal file

Binary file not shown.

7
main.c Normal file
View File

@@ -0,0 +1,7 @@
#include <stdio.h>
int main() {
char *program = "#include <stdio.h>%c%cint main() {%c char *program = %c%s%c;%c printf(program, 10, 10, 10, 34, program, 34, 10, 10);%c return 0;%c}%c";
printf(program, 10, 10, 10, 34, program, 34, 10, 10);
return 0;
}

12
output Normal file
View File

@@ -0,0 +1,12 @@
/*comment outside*/
#include <stdio.h>
char *second_function() {
return "/*comment outside*/%c#include <stdio.h>%c%cchar *second_function() {%c return %c%s%c;%c}%c%cint main() {%c/*comment inside*/ char *program = second_function();%c printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10);%c return 0;%c}%c";
}
int main() {
/*comment inside*/ char *program = second_function();
printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10);
return 0;
}

13
output.c Normal file
View File

@@ -0,0 +1,13 @@
/*comment outside*/
#include <stdio.h>
char *second_function() {
return "/*comment outside*/%c#include <stdio.h>%c%cchar *second_function() {%c return %c%s%c;%c}%c%cint main() {%c /*comment inside*/%c char *program = second_function();%c printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);%c return 0;%c}%c";
}
int main() {
/*comment inside*/
char *program = second_function();
printf(program, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);
return 0;
}