Chapter

Basic Operations

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How can strings be created and assigned to variables?

    "Depending on how a language supports strings, it may support various basic operations to create strings and assign them to variables. Usually languages allow you to create and use string literals usi

  2. How can strings be modified or copied?

    "Modifying a string or copying one string into another may be supported by the built-in assignment operator or it may require the use of a copy function. When copying strings, similar issues come into

  3. How can individual characters in a string be accessed safely?

    "Other basic operations may include accessing and/or modifying individual characters in a string. In order to do so, we may also need to know a string’s length (so that we do not access invalid charac

Basic Operations | ComputerScienceOne | Bifalgorithm | Bifalgorithm