Can you predict the output?

Saw this a long time ago…

#include <stdio.h>
char *program = "#include <stdio.h>%cchar *program = %c%s%c;%cint main()%c{%cprintf(program, 10, 34, program, 34, 10, 10, 10, 10, 10, 10);%c    return 0;%c}%c";

int main()
{
        printf(program, 10, 34, program, 34, 10, 10, 10, 10, 10, 10);
        return 0;
}

Can you predict the output?

Object reference not set to an instance of an object.

This is fixed in the next version. You will need to upgrade.

4 Likes

My c is not what it used to be… LoL but by the looks of it… its a program that prints itself… which is weird.

1 Like

Ten points to Griffendor!

Ran it through Online C Compiler - online editor.

Not even a syntax error. and that is weird…hmmmm Cloning in Digital form.