Skip to content

Sum an array · ⁨数组求和⁩

English

Sum an array

Add the n integers that a points to. A pointer like const int *a works just like an array — a[i] is the i-th element.

中文

数组求和

把 a 指向的 n 个整数加起来。像 const int *a 这样的指针用起来就和数组一样 —— a[i] 就是第 i 个元素。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩