The Coconut Cannon resembles a log with a twig sticking out of it; this is possibly the weapon's crosshair. As the name implies, the Coconut Cannon is capable of shooting coconuts.
The Coconut Cannon can be purchased from Funky Kong for three Banana Bunch Coins at Funky's Armory in Jungle Japes, the first area of Donkey Kong 64. With the Coconut Cannon, Donkey Kong gains the ability to shoot Banana Balloons, hit Coconut Switches and snipe enemies from afar.
There are special upgrades to the Coconut Cannon (as well as other weapons) that can be purchased at Funky's Armory. Some of these upgrades include a larger ammo capacity, a sniper scope and enemy-seeking ammo.
Interestingly, beta-screenshots of Donkey Kong 64 showed that the Coconut Cannon was originally going to be a weapon similar to a double-barrel shotgun.