Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Simple PHP, Development, PHP Programming lessnos

Strings - C++

Type:
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2006-Dec-05
Networking, Programming and Graphics - Tutorials
Visited: 3395 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Author: Alex Tutorialized

A group of integers stored in the memory is called an integer array. Similarly, a group of characters form a character array. Character arrays are also called strinys.The example shows how to declare and initialize a character array. A string constant is a one-dimensional array of characters terminated by a null character. In the example, the last character \0 is called a null character. The difference between 0 and \0 is that the ASCII value of 0 is 48 and the ASCII value of \0 is 0.

Strings - C++
Character Array in Memory

CONTENT D 0 V E \0
MEM Cells 1 2 3 4 5


Character Constants

"Simple"
"56732"
"This is an example for multi word string*
"0007"
"!@#$%n&*&()"
""

Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: