title: Memory address for struct not visible
body: <p>In Go, I was confused about why the memory address for variables like int can be obtained but not for structs. As an example:</p>
  
  <pre><code>package main
  
  import "fmt"
  
  func main() {
  stud1 := stud{"name1", "school1"}
  a:=10
  fmt.Println("&amp;a is:", &amp;a)
  fmt.Println("&amp;stud1 is:",&amp;stud1)
  }
  </code></pre>
  
  <p>output is:</p>
  
  <pre><code>&amp;a is: 0x20818a220
  &amp;stud1 is: &amp;{name1 school1}
  </code></pre>
  
  <p>Why is &amp;a giving the memory address, however &amp;stud1 not giving the exact memory location. I don't have any intention of using the memory address but just was curious about the different behavior.</p>