Sum the Values in an Array | C Programming Example

Sum the Values in an Array | C Programming Example

Portfolio Courses

3 года назад

24,069 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ariel Ohayon
Ariel Ohayon - 29.08.2023 14:19

There is a way to do this program with calculate the size of the array in the function?

Ответить
pablo escobar
pablo escobar - 26.07.2023 16:37

This is just a great course ❤

Ответить
Şükür Şükür
Şükür Şükür - 20.11.2022 13:54

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?

Ответить
Jack Burton
Jack Burton - 27.10.2022 01:11

Are you able to do a similar thing with an array of floats?

Ответить
Ed Hooper
Ed Hooper - 05.05.2022 06:49

Thank you for the example for my final

Ответить
Isaiah VanAusdal
Isaiah VanAusdal - 19.02.2022 21:07

I’m not going to fail thanks to this

Ответить