I know most posts are asking why something doesn't work, but in this case, it shouldn't but does. This uses an array as a function and executes it without a problem. Does anyone know why?
Code:char code[3] = { "\x90" //nop "\xC3" //ret }; int main () { void (*funct)() = (void (__cdecl *)(void))(void*) &code; funct(); }