At some time in 1962, some Japanese EE designed the first piece of crap with one of those tubular jacks.
If he would have thought ahead, he would have realized the huge problem he was creating.
It seems nobody went to the trouble of coming up with some sane standard for these connectors, so we ended up with idential-looking connectors, some with AC, some with DC, of either polarity, and unfathomable amperage. I have a weed-whacker charger that puts out
1.5 volts, and a HP printer brick that puts out 37 volts. Madness.
You may be able to luck-out, as most laptops have very flexible power supplies,a s they haev to be able to run off batteries, charged or almost discharged. So most laptops can tolerate a modicum of voltage ranges. Many even have a diode or four to protect against reverse polarity.
But in general it's best to make mismatching difficult to impossible. Like putting green paint on the connector and on the laptop socket. And blue on the printer and printer cord. And so on, all the way through your modems, routers, bridges, usb hubs, weather stations, radios, boomboxes, and whatnots.