> For the complete documentation index, see [llms.txt](https://portugues-puro.gitbook.io/documentacao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portugues-puro.gitbook.io/documentacao/operadores.md).

# Operadores

## Operadores Aritméticos

A linguagem trabalha com os seguintes operadores aritméticos:

* **mais**
* **menos**
* **vezes**
* **multiplicado por**
* **dividido por**

Você pode utilizar estes operadores em bytes, words, números (inteiros, mistos ou fracionários) e ponteiros.

Exemplos:

`Atribua o byte`` `<mark style="color:blue;">`mais`</mark>` ``32 ao segundo byte.`

`Atribua 50`` `<mark style="color:blue;">`menos`</mark>` ``a word superior para a word inferior.`

`Atribua a altura`<mark style="color:blue;">`vezes`</mark>` ``3/4 à nova altura.`

`Atribua o comprimento`<mark style="color:blue;">`multiplicado por 2`</mark>` ``ao comprimento.`

`Atribua o comprimento`<mark style="color:blue;">`dividido por 2`</mark>` ``ao comprimento.`

`Atribua 1`` `<mark style="color:blue;">`mais`</mark>` ``o deslocamento para o ponteiro.`

Existem também rotinas auxiliares, tais como:

```
Adicione <número> para <segundo número>.
Subtraia <número> desde <segundo número>.
Multiplique <número> por <segundo número>.
Divida <número> por <segundo número>.
```

## Operadores de concatenação de strings

Para concatenar strings você deve utilizar algum dos seguintes operadores de concatenação:

* junto com
* seguido de
* acompanhado de

Exemplos:

`Atribua o nome`` `<mark style="color:blue;">`junto com`</mark>` ``o sobrenome para uma string.`

`Atribua "José "`` `<mark style="color:blue;">`seguido de`</mark>` ``"da Silva" para a string.`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://portugues-puro.gitbook.io/documentacao/operadores.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
