gokursu/pointers/demo1.go

8 lines
128 B
Go
Raw Normal View History

2024-01-20 11:11:46 +03:00
package pointers
import "fmt"
2024-01-20 11:17:16 +03:00
func Demo1(number *int) {
*number = *number + 1
fmt.Println("Number in Demo file", *number)
2024-01-20 11:11:46 +03:00
}