Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the default value of a pointer variable in go?



What is the default value of a pointer variable in go?..

Answer / Virendra Prakash

The default value of an uninitialized pointer in Go is 'nil' or 'nil interface{}'. However, if you explicitly declare a pointer without initializing it, it will have an undefined value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

Does go support method overloading?

1 Answers  


What are the advantages of go?

1 Answers  


What is type casting in go programming?

1 Answers  


What gopath environment variable is?

1 Answers  


What are packages in go program?

1 Answers  


What is string types?

1 Answers  


What is a string literal?

1 Answers  


Who is the father of go (golang)?

1 Answers  


What is workspace in go?

1 Answers  


What is a modular programming language?

1 Answers  


What is syntax like in go programming language?

1 Answers  


Does go support pointer arithmetics?

1 Answers  


Categories