We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialization of 1 dimensional arrays works perfect:
new array_1nd_a[5] = {1, 2, 3};
Result: 1, 2, 3, 0, 0,
1, 2, 3, 0, 0,
new array_1nd_a[5] = {1, 2, 3, ...};
Result: 1, 2, 3, 4, 5,
1, 2, 3, 4, 5,
This cause an error: error 052: multi-dimensional arrays must be fully initialized:
error 052: multi-dimensional arrays must be fully initialized
new array_2nd_a[5][3] = { {1, 2, 3}, {4} };
I think that this should be filled with zeros, as in 1 dimensional arrays.
Also this works good:
new array_2nd[5][3] = { {1, 2, 3}, {4, 5, ...}, ... };
Result:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
This also cause an error: error 052: multi-dimensional arrays must be fully initialized:
new array_3nd_a[5][3][3] = { { {1, 2, 3}, {4, 5} } };
But this cause other error:
error 001: expected token: "{", but found "..." error 001: expected token: "}", but found ";"
new array_3nd[5][3][3] = { { {1, 2, 3}, {4, 5, ...}, ... }, ... };
And this also cause an error: error 052: multi-dimensional arrays must be fully initialized:
new array_3nd[5][3][3] = { { {1, 2, 3}, {4, 5, ...}, ... }, { {1, 2, 3}, ... } };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1 dimensional arrays
Initialization of 1 dimensional arrays works perfect:
Result:
1, 2, 3, 0, 0,
Result:
1, 2, 3, 4, 5,
2 dimensional arrays
This cause an error:
error 052: multi-dimensional arrays must be fully initialized
:I think that this should be filled with zeros, as in 1 dimensional arrays.
Also this works good:
Result:
3 and 4 dimensional arrays
This also cause an error:
error 052: multi-dimensional arrays must be fully initialized
:But this cause other error:
And this also cause an error:
error 052: multi-dimensional arrays must be fully initialized
:The text was updated successfully, but these errors were encountered: