Character Types

Character Types - or unsigned char • You should never...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
3: Character Types There are three character data types in C: (plain) char unsigned char signed char Character types are actually represented internally as integers (unsigned or signed). Two popular character sets:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
In order to write portable code, you should explicitly specify signed char
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: or unsigned char . • You should never make any assumptions about the code values of characters, such as that the value of 'A' is 65. Characters 3: Floating-point Types • float • double • long double • Use float.h for sizes and ranges. • Only guarantee:...
View Full Document

This note was uploaded on 02/18/2012 for the course CS 240 taught by Professor Rego during the Fall '08 term at Purdue.

Page1 / 3

Character Types - or unsigned char • You should never...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online