I was trying to write my own boot loader on Atmel AVR Microcontroller. I have referred one of the code base from github. I would like to thank for the code base to ZEVERO
At primary level I understand the code base. but at line 224 I found a line Reference to the code
**if (pgm_read_word(0) != 0xFFFF) ((void(*)(void))0)(); //EXIT BOOTLOADER**
I understand the if condition part but when I was trying to understand the true statement part i.e.
**((void(*)(void))0)();**
code writer has given explanation to this is //EXIT BOOTLOADER
My first Question is what is the meaning of this complex declaration
**((void(*)(void))0)();**
And Second Question is, does it Exit the execution of the code in Microcontroller.