1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Char

By David Bolton, About.com

Definition: A char is a type of variable that holds a character in C and C++. On Win 32, unless explicitly defined as Unicode, a char is 8 bits, which is the same size as a byte.

On .NET, a char holds a 16 bit Unicode character.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
Don't forget on .NET, all chars are 16 bit.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
  4. Glossary
  5. Char - Definition

©2009 About.com, a part of The New York Times Company.

All rights reserved.