3 ms·It's harder to forget to multiply by sizeof(T) when calloc-ing as well.by MaulingMonkey 10y agoIt's harder to forget to multiply by sizeof(T) when calloc-ing as well.topkekz 10y agoyou can do sizeof(T[n]) instead of sizeof(T) * n