Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

array sizeof calculation #17

@Smattr

Description

@Smattr
int const xs[] = { 1, 2, 3 };
return sum( xs, sizeof xs );

Should the last line be return sum( xs, sizeof xs / sizeof xs[0] );?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions