Advertisement
Guest User

Untitled

a guest
Aug 4th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int
  2. sum_c(int *x, size_t len)
  3. {
  4.   int sum = 0;
  5.   int *p;
  6.   for(p = x; p < x + len; ++p)
  7.   {
  8.     sum += *p;
  9.   }
  10.   return sum;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement