Advertisement
Guest User

Untitled

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