Hi!
I'm wondering if it's possible to initialise a variable with a return value from a function like this:
int function()
{............. return a;}
int variable = function();
or
int function()
{............. return 5;}
int variable = function();
?
Thanks!
Last edited on
Yes you can do all those above examples you posted.
Yeah, I thought that as soon as I posted it, but left it there, lol.