Quiz: Deduce the Outputs
In this lesson, your concepts will be evaluated through a quiz.
We'll cover the following...
We'll cover the following...
Choose one correct answer
1.
Which of the following is the true statement?
func DoSomething1(a *A) {
b = a
}
func DoSomething2(a A) {
b = &a
}
A.
DoSomething1 assigns b the value present at a.
B.
DoSomething1 assigns b the adress the same as a.
C.
DoSomething2 assigns b the adress the same as a.
D.
Both A and C
E.
Both B and C
1 / 8
We hope that you ...