+ 1
I have a few question about structs.
What is the meaning of struct example* function()? What kind of a function we had defined?
2 Respuestas
0
thank you Fernando, but it is not what I want.
- 1
Let me see if I understood your question, you want to know what kind of function is "function ()" right?
If this is your question the answer is very easy, that function is whatever you want, you have to define what the function does (before the main function).
You have to tell the function what it is supposed to do, for example you can make it to print text, to add numbers or whatever, and once you define what it can do, you can call (use) it as many time as you want (saving a lot of time, if for example you want to print a text several times, you just have to write the instruction once, and call the function)
I hope it helped!!!