mirror of
https://github.com/Xevion/contest.git
synced 2025-12-06 01:14:36 -06:00
short to int explicit cast lossy conversion common mistake
This commit is contained in:
@@ -119,6 +119,10 @@ Here's a list of things you might want to pay attention to:
|
||||
- `double multiple(int a, int b)`
|
||||
* Increments/Decrements when moving along Lists
|
||||
- `arr.remove(i--);`
|
||||
* Short to Int needs a Explicit Cast Due To Lossy Conversion
|
||||
- `short a = 32;`
|
||||
`short b = 48;`
|
||||
`short ab = (short) a + b;`
|
||||
|
||||
### Binary Trees
|
||||
|
||||
|
||||
Reference in New Issue
Block a user