Google News
logo
Golang - Quiz(MCQ)
______function is used to delete an entry from the map.
A)
drop()
B)
remove()
C)
delete()
D)
truncate()

Correct Answer :   delete()


Explanation : delete() function is used to delete an entry from the map. It requires map and corresponding key which is to be deleted.

Advertisement