answersLogoWhite

0

C does not have instructions of any kind, it has operators and functions. The arithmetic operators are provided for all built-in numeric types (integer and real numbers, including mixed mode arithmetic). They are as follows:

Unary operators:

positive (+) e.g., +x

negative (-) e.g., -x

prefix increment (++) e.g., ++x prefix decrement (--) e.g., --x

postfix increment (++) e.g., x++

postfix decrement (--) e.g., x--

Binary operators:

add (+) e.g., x + y

subtract (-) e.g., x - y

multiply (*) e.g., x * y

divide (/) e.g., x / y

modulo (%) e.g., x % y

User Avatar

Wiki User

8y ago

What else can I help you with?

Related Questions

What is an arithmetic operator in c?

+


What has the author C B Piper written?

C. B. Piper has written: 'Introduction to arithmetic' -- subject(s): Arithmetic


What has the author George C Francis written?

George C. Francis has written: 'Practical problems in mental arithmetic' -- subject(s): Arithmetic, Mental arithmetic, Problems, exercises


How do you write a arithmetic operations in c using compound assignment statement?

a = b = c


What are the operators in c tokens?

All arithmetic, logical operators are operators in c tokens. As: +, - , ++, --, %, &&, &, >>, << etc.


Which arithmetic operator have highest precedence?

In all popular high-level programming languages, the order in which operators are interpreted ("operator precedence") is vital to ensuring that all compilers execute instructions in precisely the same manner, as the "order of operations" rule is vital in mathematics. In the case of C and C++, arithmetic operators are executed prior to logic operators. For a detailed description of operator precedence, see the related links below.


Name for you the general inner and outer parts of the C P U?

The central processing unit (CPU) consists of two main parts: the control unit and the arithmetic logic unit. The control unit coordinates the activities of the CPU by directing the flow of data and instructions. The arithmetic logic unit performs mathematical calculations and logical operations.


What are the functions of cu and alu?

The ALU (Arithmetic Logic Unit) performs arithmetic and logical operations on data such as addition, subtraction, AND, OR, and NOT operations. The CU (Control Unit) manages the execution of instructions, fetching them from memory, decoding them, and coordinating the ALU, memory, and input/output devices to carry out the instructions.


What is an arithmetic operator in c program?

An arithmetic operator is any of the "atomic" operators to do the following math operations: + addition - subtraction / division * multiplication % modulus division


C program to implement arithmetic assignment operator?

y=2x2+3x+1


Which arithmetic instruction is available in 8086 but not in 8085?

The 8086 microprocessor includes the instruction for multiplication of unsigned integers, specifically the MUL and IMUL instructions, which are not available in the 8085 microprocessor. While the 8085 has basic arithmetic operations like addition and subtraction, the 8086's support for multiplication and division instructions allows for more complex arithmetic operations directly in hardware. Additionally, the 8086's capability to handle larger data sizes (16-bit) further distinguishes its arithmetic capabilities from the 8-bit 8085.


Which conditional jump instructions test z and c flag bits?

Conditional jump instructions that test the zero (Z) and carry (C) flag bits include JE (Jump if Equal) or JZ (Jump if Zero), which checks the Z flag, and JC (Jump if Carry), which checks the C flag. These instructions are commonly used in assembly language for decision-making based on the results of previous arithmetic or logic operations. The Z flag indicates whether the result of the last operation was zero, while the C flag indicates whether there was a carry out from the most significant bit during addition or a borrow during subtraction.