Buscar

What are the arithmetic, relational, logical, and bit-by-bit operators in C? The assignment operator is represented by the symbol '=' and assigns ...

What are the arithmetic, relational, logical, and bit-by-bit operators in C?

The assignment operator is represented by the symbol '=' and assigns a value or the result of an expression to the variable specified on its left.
Arithmetic operators operate on numbers and expressions, resulting in numeric values.
Relational operators operate on expressions, resulting in logical values of TRUE or FALSE.
Logical operators operate on expressions, resulting in logical values of TRUE or FALSE. They have the characteristic of 'short circuit', meaning that their execution is short and is only executed to the necessary point.
Bit manipulation is performed on all bits of the variable, which cannot be of type float or double.
The increment and decrement operators can be represented as '++i', 'i++', '--i', and 'i--'.
The address-of operator is represented by the symbol '&', and the content of the specified address is represented by the symbol '*'.

Essa pergunta também está no material:

Faculdade_de_Ciencias_Aplicadas_de_Casca
154 pág.

Ciências Aplicadas Universidade Estácio de SáUniversidade Estácio de Sá

💡 1 Resposta

User badge image

Ed Verified user icon

Os operadores aritméticos em C são: adição (+), subtração (-), multiplicação (*), divisão (/) e módulo (%). Os operadores relacionais em C são: igual a (==), diferente de (!=), maior que (>), menor que (<), maior ou igual a (>=) e menor ou igual a (<=). Os operadores lógicos em C são: E lógico (&&), OU lógico (||) e NÃO lógico (!). Os operadores bit-a-bit em C são: E bit-a-bit (&), OU bit-a-bit (|), OU exclusivo bit-a-bit (^), deslocamento à esquerda (<<) e deslocamento à direita (>>). O operador de atribuição é representado pelo símbolo '=' e atribui um valor ou o resultado de uma expressão à variável especificada à sua esquerda. Os operadores de incremento e decremento podem ser representados como '++i', 'i++', '--i' e 'i--'. O operador de endereço é representado pelo símbolo '&', e o conteúdo do endereço especificado é representado pelo símbolo '*'.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais