Compare and contrast the four primary variable types (bool, int, char, double) we’ve discussed so far. When would you use each, and to store what sort of data?
bool holds only true and false statements and you gonna use that for when things are true or false.int holds numbers but can not hold decimals and you are gonna use this when you need to like when your counting something in your inventory .double holds numbers and decimals.char holds characters and you can use this when you are using stats.
No comments:
Post a Comment