by uecker · 1y ago · 0 comments
_Generic((typeof(x), int*: 1, int[]: 2)
\_Generic with type argument is a new feature, it is a bit less elegant without it: _Generic((typeof(x)*)0, typeof(int*)*: 1, typeof(int[])\*: 2)void free(void *ptr);
You use it a lot more than you think ;)
You are however correct, that doesn't mean that C cannot be useful for scientific computing, but I think that there are better alternatives. Although, one can write the core functionalities in C for speed and efficiency, and use another language as a driver.