Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int y (int *p, int a)
  4. {
  5. int *c = p;
  6. //printf ("%d", *c);
  7. while (*c++ < a);
  8.  
  9.  
  10. return c - p;
  11. }
  12. int main ()
  13. {
  14. int B[2][2] = {1, 2, 3, 4};
  15. int A[4] = {10,19,28,37};
  16. printf ("%d", y(A, 29));
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement