Programs Instructions
Programs instructions and data are stored by the computer in binary in the same place. When a Computer starts a program it directs itself to the start address for the instructions. The CPU fetches the instructions from the program location and Decodes it to find out what the next instruction is. In the meantime it has already updated a Register, the Program counter, to point at the next memory location so that it is ready to fetch the next instruction if necessary.
Operand may be literals, such as the number "3," or strings, such as "Hello." Or they may be variable names such as "x" or "speed".
Operator represent actions that can be performed on the operands. The most obvious operators are the symbols for the four common arithmetical operations: "+," "-," "*" (multiplication), and "/" (division). However, most computer languages also define other operators.
The Video below will help explain.
Operand may be literals, such as the number "3," or strings, such as "Hello." Or they may be variable names such as "x" or "speed".
Operator represent actions that can be performed on the operands. The most obvious operators are the symbols for the four common arithmetical operations: "+," "-," "*" (multiplication), and "/" (division). However, most computer languages also define other operators.
The Video below will help explain.
No comments:
Post a Comment