hi, what is the difference between these?
what is the impact of void there?Code:int abc() { ... } int abc(void) { ... }
thank you in advance
hi, what is the difference between these?
what is the impact of void there?Code:int abc() { ... } int abc(void) { ... }
thank you in advance
Try calling both of them with
abc(123);
Oh, and the answer is different in C++, just in case you don't know which language you're programming in.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
If you understand what you're doing, you're not learning anything.
sorry that i didn't look at it, ty for answers..