answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What procedure or operator allows you to extract a single character from a string in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is fine-needle aspiration?

A procedure called fine-needle aspiration allows the clinician to extract cells directly from the lump for further evaluation.


The operator allows you to search for a range of values in one field?

The BETWEEN operator allows you to search for a range of values in one field.


What does alcohol do to wheat germ?

It allows DNA to extract from the wheat germ.


What is the diagnostic procedure that allows for the visualization of the urinary bladder?

This procedure would be called a cystoscopy.


Difference between new operator and operator new?

new operator allows to allocate a memory from the heap..... so a new instance of a class is created.......... but operator new is used to overload the (new) operator........ juast like overloading of other operators


What data types allows unlimited character input?

String data type allows unlimited character intput


Which input role allows you to direct a batch to the QC folder?

Scan Operator


Which operator allows you to search for a range of values in one field?

The answer is Between in an Access question.


What are the advantage and disadvantage of operator overloadin?

Operator overloading allows c/c++ operators to have user defined meanings on user defined types. For example + operator is used to add to numbers but we can also use it for concatenating a string the only limitation is you cannot change the literal meaning of the operator.


What character type allows the reader to see what the main character is really like through his or her interactions with the main character?

flat character


Which character type allows the reader to see what the main character is really like through his or her interactions with the main character?

flat character


Which character type allows the readers to see what the main character is really like through his or her interactions with the main character?

flat character