cybersecurity · beginner · ~15 min · safe pentest lab
Sum a list of sizes.
Implement long total_size(const int *sizes, int n) returning the sum of n file sizes.
long total_size(const int *sizes, int n) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.