Answer:
yeah u can my brother go for it
Answer:
in the body part of the declaration or definition
Explanation:
In functional programming the scope of a variable is in the body part of the declaration or definition. Meaning that as soon as it is declared, whatever body it is in can call and use that variable but not any code outside of that body. For example, in the below code variable (var1) is declared inside func1 and therefore can be used by any code inside the body of func1 but not by code inside func2 since it is outside the body of func1.
void func1() {
int var1;
}
void func2() {
var1 = 2 // This will not work, since var1 is only available in func1()
}
Answer: B. a = 14 and b = 3
Explanation:
Let's work through the expressions one-by-one:
The first 2 lines create 2 varaibles, a<em> </em>and b, with values of 2 and 7, respectively.
The next line assigns a to the product of a and b.
a * b = 2 * 7 = 14, so the new value of a is 14.
The last line assigns the remainder of b divided by the difference of a and 10.
a - 10 is 14 - 10 which is 4.
The value of b is 7 due to the second expression. 7 % 4 is 3 as 4 goes into 7 once with 3 left over. This value of three is assigned to b.
After all the expressions, the values of the variables are as follows: a = 14 and b = 3.