Quiz: Deduce the Outputs

In this lesson, your concepts will be evaluated through a quiz.

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

Question 1 of 80 attempted

Get hands-on with 1400+ tech skills courses.