
Data Structures – Primitives
Coding Blocks
00:00
C Sharp
In C sharp, by default, it's going to check to see if you're going to get an overflow error. You can actually set unchecked above that region and then the compiler isn't gonna say whether or not there will be a problem. So I don't know if unchecked is a security concern or not, but you should probably not do it unless for some reason you really need it. Is there every time where you're just okay with overflow? Is there ever a time when you definitely want to overflow? If so, what use cases would you think of in your code?
Transcript
Play full episode