Saved Bookmarks
| 1. |
What Is A Nil Pointers In Go? |
|
Answer» GO compiler assign a Nil value to a pointer variable in case you do not have exact ADDRESS to be assigned. This is DONE at the time of variable declaration. A pointer that is assigned nil is called a nil pointer. The nil pointer is a constant with a value of zero defined in several standard LIBRARIES. Go compiler assign a Nil value to a pointer variable in case you do not have exact address to be assigned. This is done at the time of variable declaration. A pointer that is assigned nil is called a nil pointer. The nil pointer is a constant with a value of zero defined in several standard libraries. |
|