answersLogoWhite

0

If you are referring to the character object 'char,' then here are a couple of uses:

To create an object, use this:

char object = 'a';

To create an array of chars, use this:

char array[10];

To dynamically allocate an array of chars, use this:

char array = new char[10];

(Don't forget to delete the object with 'delete [] array')

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the use of c plus plus function atoi?

Converts a character to integer (if it is a numeric character)


Wild card character in c plus plus?

There is no wildcard character in C++.


How the turbo c plus plus use in the computer?

How the turbo c plus plus use what in the computer.


Can an integer data type in c plus plus stores character value?

no


What is the character used at the end of executable statements in C plus plus?

The semi-colon converts a C++ expression into a statement.


What is used to test value of character or integer in c plus plus?

Use the comparison operators (==, <, <=, >, >=). All primitives (including char and int) support these built-in operators.


How do you use conioh header in c plus plus?

just as you do it in C.


What procedure or operator allows you to extract a single character from a string in c plus plus?

Use the array index operator. Strings are just arrays of characters so use the zero-based index of the character you are interested in. Alternatively, use pointer arithmetic to achieve the same thing. Note that the string's name is a reference to the start of the character array.


Can you use c plus plus in windosh vista?

Only if you have a C++ compiler.


Which is best C or C plus plus?

depends what you use it for. c++ = object oriented c = not object oriented


What is manipulator in c plus plus language?

Manipulators are functions that change the formatting parameters on character streams.


User defined data type in c plus plus?

Use "typedef" : both in C and C++.