SHARE
TWEET

Untitled

a guest Jun 19th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. unsigned int squre(unsigned int num)
  2. {
  3. return num*num;    
  4. }
  5.      
  6. struct returnUnsignedint squre(unsigned int num)
  7. {
  8.     struct returnUnsignedint returnValue;
  9.     if (num>65535) { //my embedded system over flow
  10.         returnValue.error = 1;
  11.     }
  12.     returnValue.value = num*num;
  13. return returnValue;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top