3 ms·
C quirks. This is interesting. I have used some of the tricks myself, #1,#2,#4,#5. #2 and #5 can be combined to make and interesting hack. When combinded with
by marcthe12 4y ago
C quirks. This is interesting.
I have used some of the tricks myself, #1,#2,#4,#5.
#2 and #5 can be combined to make and interesting hack. When combinded with memcpy you can do
int *a = memcpy(&(int){0}, b, sizeof *b);
C23 typeof makes this even more interesting
If you what an challenge here is a standard compliant c code. Try to undestand it. If can understand you are a master of c's type system
static int* (*const *(*restrict x)[5])(volatile union {struct{int a;int b;};}[static const restrict 5], register enum{HELLO,WORLD} a) = {0};