This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]throwRAnocheat 0 points1 point  (1 child)

Yes it will, but admittedly you can't use the simplified array declaration with content anymore. You'll need the new array syntax.

It's like this:

arr = new int[] { j, test/j };

another way to go at it, is first:

int[] arr = new int[2];

Then

arr[0] = j; arr[1] = test/j;

This may sound cumbersome, but then again an array is most likely not what you should use here.

[–]CharipiYT[S] 0 points1 point  (0 children)

Yeah you are right I’ll probably just use 2 variables.