Char

From Computer Science Wiki
Programming basics[1]

A char in the C programming language is a primitive data type with the size of exactly one byte.[2]. You will remember a byte is 8 bits. Please be aware that not every letter fits into 8 bits.

Example[edit]

Examples of characters include letters, numerical digits, common punctuation marks (such as "." or "-"), and whitespace. The concept also includes control characters, which do not correspond to symbols in a particular natural language, but rather to other bits of information used to process text in one or more languages. Examples of control characters include carriage return or tab, as well as instructions to printers or other devices that display or otherwise process text.[3]

Standards[edit]

  • Define the terms: variable, constant, operator, object.

References[edit]