Why you always initialize on declaration
reddit.com
Why you always initialize on declaration
1–4 of 4 posts
Re: Why you always initialize on declaration
#2Re: Why you always initialize on declaration
#3Sorry, but that isn't possible. Maybe if you keep raising the voltage (which would be a pretty strange thing to do), but even then it wouldn't cause an explosion, but rather a short. And no capacitor I have ever heard of can store enough energy to explode.
Re: Why you always initialize on declaration
#4"The code caused the capacitors to keep charging even after they had reached their limit, until kaboom." Sorry, but that isn't possible. Maybe if you keep raising the voltage (which would be a pretty strange thing to do), but even then it wouldn't cause an explosion, but rather a short. And no capacitor I have ever heard of can store enough energy to explode.
I can vaguely imagine a charging circuit being designed to have what amounts to a current source rather than a voltage source, but I don't know enough in detail to confidently associate that idea with the story in question.