mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
243 B
17 lines
243 B
5 years ago
|
## swap
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
- Write a function that swaps the contents of two **pointers to an int** (`*int`).
|
||
|
|
||
|
### Expected function
|
||
|
|
||
|
```go
|
||
|
func Swap(a *int, b *int) {
|
||
|
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### Note
|
||
|
|
||
|
Remember to submit a main function testing the function
|