This question already has an answer here:
- Difference between 'struct' and 'typedef struct' in C++? 8 answers
I'm setting up a basic socket server following this guide: https://www.geeksforgeeks.org/socket-programming-cc/
So, I know that when you use the keyword struct it's to define a data structure, but as you can see in the example, it creates an instance of sockaddr_in using the structure keyword, but it's not for creating/defining the structure, it's to create an instance.
So I'm wondering why in this guide to define a sockaddr_in structure he puts the 'structure' keyword before, I tried it without and it compiles all correctly.
Is there any reason behind?