Guest User

Untitled

a guest
Aug 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Obvious type conversion VS implicit type conversion
  2. #define static_cast(T,V) ((T)(V))
  3. typedef unsigned char Uint8_T;
  4. typedef int Bool_T;
  5.  
  6. ...
  7.  
  8. Bool_T folder = true;
  9.  
  10. ...
  11.  
  12. Uint8_T smth = folder;
  13.  
  14. Uint8_T smth = static_cast(Uint8_T, folder);
Add Comment
Please, Sign In to add comment