|
-
January 18th, 2006, 10:08 PM
#1
pls help me w/ this c problem
I’m supposed to write a recursive function to count how many time does a number occur in an array. Function is in a format: count(number, array[], length);
Look at the attached txt file
I am getting an error in this line: our_sum = count(1, our_array[], 8);
error: syntax error before “]” token
What am I doing wrong???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|