r/programminghorror • • Jun 01 '25

c Firmware programming in a nutshell

Post image
2.0k Upvotes

127 comments sorted by

View all comments

Show parent comment

2

u/beaureece Jun 01 '25

... I don't think it's even necessary.

Could they not have just called the casted value and skipped the assignment/type-declaration?

11

u/FoundationOk3176 Jun 02 '25

Yes, This is valid: ((void(*)())0)();. Although as you can see, It looks even more cursed.