Skip to content
RED SAGSkills
easy5 pts · first answer countsembedded-cstorage-classes

Default value of a local

What does sum hold before the loop in this function?

uint32_t total(const uint8_t *d, int n) {
    uint32_t sum;
    for (int i = 0; i < n; i++) sum += d[i];
    return sum;
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions