Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the difference between int main(void) and void main () in C language? Are they just different types? Why are there spaces in brackets?
What is the difference between int main(void) and void main () in C language? Are they just different types? Why are there spaces in brackets?
Don't distinguish main from other functions. Mainly nothing special. It's just a function. You can understand a function according to its definition rules. Void display means that the output or input is empty, the specification of C language is sometimes loose, and different development environments will add their own characteristics in these loose places, so a meaning may have different expressions in different environments.