logo

Crowdly

We want to write a generic function that can add all the elements of an array (o...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

We want to write a generic function that can add all the elements of an array (of unknown type, e.g. real numbers, complex numbers, vectors, matrices, ...) and get the result of the sum (of unknown type), either as a return value or passed by reference (then returning some error code).

What are the possible prototypes for such a function?

Penalty for wrong ticks.

0%
100%
100%
100%
0%
100%
0%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.epfl.ch?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!