Changes
Page history
Updated C Interoperability and Type Casting (markdown)
authored
May 04, 2017
by
williamfgc
Show whitespace changes
Inline
Side-by-side
C-Interoperability-and-Type-Casting.md
View page @
956ed63f
...
...
@@ -27,7 +27,7 @@
C++ --> C --> JNI --> Java --> JNI --> C --> C++
```
3.
<strong>
Avoid C-style casting:
</strong>
use C++11 style casting:
```static_cast, dynamic_cast (classes), reinterpret_cast``.
3.
<strong>
Avoid C-style casting:
</strong>
use C++11 style casting:
```static_cast, dynamic_cast (classes), reinterpret_cast``
`
.
*
Don't
```
cpp
int
foo
=
(
int
)
bar
;
...
...
...
...