Guest User

Untitled

a guest
Apr 27th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. ~/projects/jruby-cext ➔ g++ test.cpp
  2.  
  3. ~/projects/jruby-cext ➔ ./a.out
  4. 102
  5. 102
  6.  
  7. ~/projects/jruby-cext ➔ cat test.cpp
  8. #include <stdio.h>
  9.  
  10. int main(int argc, char** argv) {
  11. char x = 'f';
  12. printf("%d\n", (int)x);
  13. printf("%d\n", int(x));
  14. }
Add Comment
Please, Sign In to add comment