This code find maximum or largest element present in an array. It also prints the location or index at which maximum element occurs in array. This can also be done by using pointers (see both codes).
Wires are made of metal (almost always copper or aluminum, for electrical wires) because those are the best conductors. The internal components of switches are also made of metal, for the same reason. The outside parts, that you touch and see, are...
The most common way to make an electromagnet is by winding insulated wire around an iron core, such as a bolt, nails, or railroad spike. When the wire is connected to a source of electricity, and the circuit is closed, electricity flows through the wire, and the core becomes a magnet.