3 ms·
Downvoters, care to elaborate what you think is wrong with the above? Literally even fortran can do better than size_t len_a = sizeof(a)/sizeof(a[0]); or
by patrec 8y ago
Downvoters, care to elaborate what you think is wrong with the above? Literally even fortran can do better than
size_t len_a = sizeof(a)/sizeof(a[0]);
or
my_pseudo_foo_array = (foo*) malloc(len * sizeof(foo));
- Gibbon1 8y agoYou're not wrong. Even BASIC was better than this.