Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. int
  2. abs (int arg)
  3. {
  4.  return ((arg < 0) ? -arg : arg);
  5. }
  6. unsigned int y;
  7. y = adc_read();
  8. z = abs((int) y); // A risky cast.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement