diff --git a/Colleen.c b/Colleen.c new file mode 100644 index 0000000..70b4936 --- /dev/null +++ b/Colleen.c @@ -0,0 +1,13 @@ +/*comment outside*/ +#include + +char *second_function() { + return "/*comment outside*/%c#include %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; +} diff --git a/a.out b/a.out new file mode 100755 index 0000000..158a2bb Binary files /dev/null and b/a.out differ diff --git a/en.subject.pdf b/en.subject.pdf new file mode 100644 index 0000000..8f00473 Binary files /dev/null and b/en.subject.pdf differ diff --git a/main.c b/main.c new file mode 100644 index 0000000..52321e4 --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include + +int main() { + char *program = "#include %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; +} diff --git a/output b/output new file mode 100644 index 0000000..e8cdb0a --- /dev/null +++ b/output @@ -0,0 +1,12 @@ +/*comment outside*/ +#include + +char *second_function() { + return "/*comment outside*/%c#include %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; +} diff --git a/output.c b/output.c new file mode 100644 index 0000000..70b4936 --- /dev/null +++ b/output.c @@ -0,0 +1,13 @@ +/*comment outside*/ +#include + +char *second_function() { + return "/*comment outside*/%c#include %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; +}