Array & Pointers in Golang

  • date 22nd March, 2021 |
  • by Prwatech |
  • 0 Comments

Prerequisites

Hardware : Local Machine

Software : VS Code, Golang

Open the VS code type the below code.

Creating an array of size 5

Output :

Addition operation in array

Output :

Printing array elements with its positions

Output :

Pointer

Address of a variable

Output :

Assigning values through pointers

Output :

The value of null pointer

Output :

Division using pointer

Output :

Quick Support

image image