Select all that apply. Given the following code fragment, which of the things shown below happen when the statement on line 8 executes?
```
1 int square(int a)
2 {
3 return a * a;
4 }
5 int main()
6 {
7 int x = 0;
8 x = square(5);
9 cout << x << endl;
10 return 0;
11 }
```
a. The square function is called and the value 5 is passed as an argument.
b. The square function calculates 5*5 and stores the result, 25, as a temporary value.
c. The temporary value is copied (assigned) to the variable x.
d. The temporary value is discarded by the system.
e. None of these
a. The square function is called and the value 5 is passed as an argument.
b. The square function calculates 5*5 and stores the result, 25, as a temporary value.
c. The temporary value is copied (assigned) to the variable x.
d. The temporary value is discarded by the system.
You might also like to view...
Before making an interactive form available for use, you should unprotect it so that users can fill out the form
Indicate whether the statement is true or false
A mail merge recipient list must be filtered before it is selected
Indicate whether the statement is true or false