➀ A one-byte variable (char or unsigned char) is declared as a register variable.
➁ The variable declared as in ➀ is squared by compound substitution
Example: register char a;
a
*
= a;
• Solution
The problem can be avoided as follows:
➀ In the example above, do not declare the variable (a) as a register variable.
Example: register char a; → char a;
a
*
= a; a
*
= a;
➁ When squaring one-byte data, do not use compound substitution. Code as follows:
Example: a
*
= a; → a = a
*
a;
80
Downloaded from Elcodis.com electronic components distributor