// archives

ASCII

This tag is associated with 3 posts

Strings

A string

Is a series of characters stored in consecutive bytes of memory

C++ has two ways of dealing with strings

The first, taken from C and often called a C-style string, is the first one this page examines
Later, we will discuss an alternative method based on a string class library

The idea of a series of characters stored [...]

Escape Sequences

When you use alphabetic characters in your program

The compiler considers them as numbers but converts each to its corresponding character following the ASCII list

Counting decimal values starting at 0, the first 32 characters actually do not display anything on the screen:

They are called non-printing characters

They are obtained from pressing Ctrl and an alphabetic letter or [...]

Representing a Byte

(Image-1) Byte
 

A byte

Is a group of eight consecutive bits (Image-1)
The bits are counted from right to left starting at 0
Is considered as being made of two nibbles (Image-2)

 The most right bit

Is bit 0
It is called the least significant bit
It is also referred to as the Low Order bit, the LO bit, or LOBIT

The most left [...]