Typedef an unconstrained float array in C
Typedef an unconstrained float array in C
I made a typedef for float arrays, like this:
typedef float fooType[];
So that I can declare and initialise float arrays statically like this:
fooType myArray = {1.0, 2.0, 3.0}
That works fine. I can say myArray[2] with no problems and generally use my fooType as I’d like. In the context of my program it’s very clear that fooTypeis an array type (it’s actually a giant lookup table) which is…
View On WordPress












