G
Guybrush Threepwood
a function declared as
void* someFunction()
{
....
}
what does it exactly return?
void* someFunction()
{
....
}
what does it exactly return?
Guybrush said:a function declared as
void* someFunction()
{
...
}
what does it exactly return?
Karl said:a pointer to void.
That is a pointer to ... aehm ... something, but nobody
knows to what exactly.
Guybrush said:a function declared as
void* someFunction()
{
...
}
what does it exactly return?
E. Robert Tisdale said:That's *not* a declaration.
It's a definition.
E. Robert Tisdale said:That's *not* a declaration.
It's a definition.
The declaration
void* someFunction(void);
informs the compiler that someFunction returns a pointer to memory.
Oh, yes it certainly is (barring the syntax error)
Makhno said:What syntax error?
<sigh>Mike said:The line with the three periods.
If you want to use such to indicate e.g.
"other stuff goes here", put it in a comment.
I know this case isn't really a good example, but
you'll find that more help is available if posted
code can be copy-pasted and compiled verbatim.
-Mike
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.