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 difference between make and new?



What is the difference between make and new?..

Answer / Deepti Singh

In Go, `make` is a built-in function used for creating managed values such as maps, slices, channels, and structures. On the other hand, `new` is an operator that allocates memory on the heap for a custom type but does not initialize it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

Does go programming language support operator overloading?

1 Answers  


Does go (golang) support method overloading?

1 Answers  


What is a string literal in go programming?

1 Answers  


How will you access command line arguments in a go program?

1 Answers  


What is go routine in go? How you can stop go routine?

1 Answers  


Explain what a modular programming language is?

1 Answers  


What is go (golang) programming language?

1 Answers  


What is type assertion in go? What does it do?

1 Answers  


What are channels and how can you use them in golang?

1 Answers  


What is the syntax for creating a function?

1 Answers  


Does go support pointer arithmetics?

1 Answers  


What are packages in go language?

1 Answers  


Categories