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...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[file:arrows.png|right|frame|Programming basics<ref>http://www.flaticon.com/</ref>]]
[[file:arrows.png|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 one byte.<ref>https://en.wikipedia.org/wiki/Character_(computing)#char</ref>. You will remember a byte is 8 bits. Please be aware that not every letter fits into 8 bits.  
A char in the C programming language is a primitive data type with the size of exactly one byte.<ref>https://en.wikipedia.org/wiki/Character_(computing)#char</ref>. You will remember a byte is 8 bits. Please be aware that not every letter fits into one byte (international characters, especially).  


== Example ==
== Example ==


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 ==  

Latest revision as of 11:28, 19 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 one byte (international characters, especially).

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]