title: How to print the memory address of a slice in Golang?
body: <p>I have some experience in C and I am totally new to golang.</p>
  
  <pre><code>func learnArraySlice() {
    intarr := [5]int{12, 34, 55, 66, 43}
    slice := intarr[:]
    fmt.Printf("the len is %d and cap is %d \n", len(slice), cap(slice))
    fmt.Printf("address of slice 0x%x add of Arr 0x%x \n", &amp;slice, &amp;intarr)
  }
  </code></pre>
  
  <p>Now in golang slice is a reference of array which contains the pointer to an array len of slice and cap of slice but this slice will also be allocated in memory and i want to print the address of that memory. But unable to do that.</p>