It depends on the architecture.
From book:
I once spoke to someone who had a letter C program that was going to run autonomously into a small microprocessor (the answer is right here ). when this machine was switched on, the hardware would call a subroutine whose address was stored at location 0. In order to simulate the conversion of power to, we had to develop a C expression to call this subroutine explicitly. After some thought, we came up with the following:
(*(void(*)())0)();
source share