Using a function in Go

Report a typo

Suppose you have the sum() function, it returns the addition of two int numbers x and y:

func sum(x, y int) int {
    return x + y
}

Select below the correct ways to use the sum() function in your Go program.

Select one or more options from the list
___

Create a free account to access the full topic