Комментарии:
There is a way to do this program with calculate the size of the array in the function?
ОтветитьThis is just a great course ❤
ОтветитьHello, i try to understand logic of array notation. My question is abput 2D array.
We had 2D array(or 2D set) . And we want to sum each row. When we do this, we have attained 1D array(or 1D set).
Coders use
rowTotal +=nums[i] [j]
in notation in the "for loop".
But rowTotal is 1D array, why doesnt square bracket exist?
In my mind, it should be
rowTotal[i] +=nums[i] [j]
I imagine, if something is written in nonarray formate, then it is a scaler. Namely it corresponds to only one value, 0D set.
Why isnt it like in my mind?
Are you able to do a similar thing with an array of floats?
ОтветитьThank you for the example for my final
ОтветитьI’m not going to fail thanks to this
Ответить