void

What is the purpose of the void parameter in functions in the C language?

Is the void parameter just semantic or does it do something I don't know about? int main() { return 0; } int main(void) { return 0; }

How to create events in a for replay structure?

My doubt is as follows, I'm developing a program (I'm a beginner) in C#. The part I wanted to improve, is this: I'm wanting t ... tArgs e) { } void btn2_Click(object sender, EventArgs e) { } // E assim vai... Is this possible? If so, help me? Grateful!