Multiplying Numbers Using Pointers
Learn how to multiply two numbers using pointers.
Pointers to multiply numbers
The pseudocode statement for multiplication is as follows:
[x1] <- [x1] * [x0]
This statement means that we multiply the contents of the memory cell whose address is stored in the x1
register by the value stored in the memory cell whose address is in the x0
register.
In the C/C++ language
In C or C++, we write a similar expression as that for the addition operation
Note: We have two ...
Access this course and 1400+ top-rated courses and projects.