In a project, somebody pushed this line:
double (*e)[n+1] = malloc((n+1) * sizeof(*e));
Which supposedly creates a two-dimensional array of (n+1)*(n+1) doubles.
Supposedly, I say, because so far, nobody I asked could tell me what this does, exactly, nor where it originated from or why it should work (which allegedly, it does, but I'm not yet buying it).
Perhaps I'm missing something obvious, but I'd appreciate it if somebody could explain above line to me. Because personally, I'd feel much better if we'd use something we actually understand.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…