In this sample chapter from CompTIA IT Fundamentals+ FC0-U61 Cert Guide, you will learn how to compare and contrast fundamental data types and their characteristics: char, strings, numbers (integers and floats), and Boolean.
Whether you’re programming, crunching numbers with spreadsheets, or figuring out binary logic, understanding the fundamental data types used by Information Technology is foundational. In this chapter, you learn about IT Fundamentals+ Objective 1.2: Compare and contrast fundamental data types and their characteristics: char, strings, numbers (integers and floats), and Boolean.
Char is an abbreviation for character. Many programming languages use char as a reserved keyword, including Visual Basic, SQL, Java, C languages, and others. Char is a data type that refers to a single character or a single-character variable. For example, each of the following is a char data type:
A char is equal to 1 byte.