Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int sum(int* t)
- {
- return *t + sum(*(t+1));
- }
- int main(void)
- {
- int tableau[3] = {1, 2, 3};
- std::cout << sum(tableau);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement