Explain pointers in Go?

devquora
devquora

Posted On: Feb 22, 2018

 

A pointer is a kind of variable which stores the memory address of another variable. Various programming tasks are performed quite easily with pointers and various other functions such as call by reference which cannot be achieved without using pointers. Any variable or constant you must declare it to a pointer before you can use it to store any variable address.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Go Programming Language

    What are Goroutines?

     Goroutines are the methods and functions that run concurrently with another methods or functions. Goroutines can be co..

    Go Programming Language

    What are channels in Go language and how can you use them?

    Go provides a mechanism, which is called channel that is utilized to share data between goroutines. When you execute a ..

    Go Programming Language

    How can you distribute tasks in Go to different machines?

    Following details is the way how we can distribute various tasks in Go to different machines: Get the Dependencies Writ..