int main(void) { char buff[] = "hello buffer"; int res = 0; for (int i = 0; i < sizeof(buff); i += 1) { res += buff[i]; } return res; }