How to get array length in D

1 Answer

0 votes
import std.stdio;

void main() {

    auto arr = ["d", "dart", "c", "c++", "rust"];

    writeln(arr.length);
}



/*
run:

5

*/

 



answered Dec 9, 2022 by avibootz
...