Char: Difference between revisions

From Computer Science Wiki
(Created page with "right|frame|Programming basics<ref>http://www.flaticon.com/</ref> A char in the C programming language is a primitive data type with the size of exactly o...")
 
Line 6: Line 6:


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.<ref>https://en.wikipedia.org/wiki/Character_(computing)</ref>
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.<ref>https://en.wikipedia.org/wiki/Character_(computing)</ref>
== Do you understand this? ==


== Standards ==  
== Standards ==  

Revision as of 14:25, 9 June 2019

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]