#include <stdio.h> #define onearray(type,name,elems,content...) type one__##name [elems]={content};type* name = &one__##name[-1]; onearray(int,array,10,1,2,3,4,5,6,7,8,9,10) int main(){printf("#2:%d", array[2]);}
>>17 there's Unix way, there's The Right Way (as claimed by Lispers), there's The Right Way (as claimed by Plan9ers), there's The Right Way (as claimed by category-theoryfags) - and then there's the FrozenAnus way
Name:
Anonymous2017-09-21 19:44
>>17-19 Only in C and C++ is this acceptable in production code.
Name:
Anonymous2017-09-21 19:56
>>20 No it's not, because it's undefined behaviour.
Name:
Anonymous2017-09-22 6:34
>>21 how can it be undefined behavior when it's dubs?