





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






int Foo() { int Limit = 150; int StopIndex = 2; int Result = 0; Int Array[] = {20, 30, 101, 35, 80}; int Baz(int Limit, int *StopIndex, int Array[]);
Result = Baz(Limit, &StopIndex, Array); } int Baz(int Max, int *End, int Values[]) { int X, Sum = 0;
for (X = 0; X <= *End; X++) Sum += Values[X]; *End += 1; if (Sum > Max) return 1; else return 0; }