logo

Crowdly

Browser

Add to Chrome

Дан фрагмент кода на языке Go. Что будет выведено на экран в результате исполнен...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Дан фрагмент кода на языке Go. Что будет выведено на экран в результате исполнения этого фрагмента?

type A struct

{

value

int

}

type B

struct

{

value

int

}

type C

struct

{

A

B

value

int

}

func NewC(val int) C

{

return C{A{val}, B{2*val}, 0

}

}

func main() {

var obj = NewC(

5

)

fmt.Print(obj.value)

}

More questions like this

Want instant access to all verified answers on moodle.cfuv.ru?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome