Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20696

BASCOM-AVR : How to create an 8 byte integer? : REPLY

$
0
0
You might like it that way, but using a defined type for a variable which has nothing to do with its pre-defined meaning could lead to all sorts of weird errors. Consider what happens to the sign bits when you try to perform some math or display operations on integers compared to words. Similar but worse problems will happen with floating point types. Personally i dont see what is wrong with just defining an 8 byte array. The printbin and inputbin functions handle byte arrays completely transparently. Then at least when someone wants a 10 byte PIN, you are not completely lost again.

Viewing all articles
Browse latest Browse all 20696


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>