C allocate and initialize in same statement
Posted: Wed Mar 09, 2022 5:38 pm
I am looking to allocate and initialize an array in the same statement. Not like calloc, where the members are initialized to 0, but to, say, 1, 2, and 3. (If it restricts anything, I want to do this to initialize a member of a struct.)
Thanks
Thanks