In many of the southern and central Africa countries, the mains voltage is 230 V AC, 50 Hertz. Voltage and frequency correspond to the German values and all electrical appliances available in Central Europe are thus compatible. In addition, some of the larger hotels have in their bathrooms an outlet for 110 Volt devices.
The mains voltage in Kenya, Lesotho, Mozambique, Namibia, Zimbabwe and Uganda is slightly different from the mains voltage in Germany. Manufactures of electrical devices calculate the tolerance that you can use your electrical appliances without problems. The mains voltage in Madagascar is less than the power in Germany. Check your electrical appliances, you probably need a voltage converter.
In chargers of laptops, tablets, smartphones and cameras is usually the 'INPUT: 100-240V, 50/60 Hz'. These chargers are suitable for all countries in the world.
The electrical outlets in African countries are different from each other and deviate from the Central European system, so that you need a special plug adapter. The destination corresponding adapters are available at electronics stores or travel shops at the relevant national airports. In some hotels you can borrow an adapter at the front desk.
In rural and isolated areas of Africa the power supply is to this day not always given. Therefore we advise to carry a flashlight.