Question: use only allowed function point / main . go github.com / 0 1 - edu / z 0 1 . PrintRune# 4 , - -
use only allowed function pointmaingo
github.comeduzPrintRune#nolit
Instructions
Create a new directory called point.
The code below must be copied into a file called main.go inside the point directory.
The necessary changes must be applied so that the program works.
The function setPoint must work with int.
Code to be copied
func setPointptr point
ptrx
ptry
func main
points : &point
setPointpoints
fmtPrintfx d y d
points.x points.y
Usage
$ go run
x y
$
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
