Y
Hacker News
new
|
ask
|
show
|
jobs
by
patrec
2618 days 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));
1 comments
Gibbon1
2618 days ago
You're not wrong. Even BASIC was better than this.
link