Menu

[solved] – Question 8873

Hi, I am new to c++ and have a question. In my code I need to use a variable of my void fuction in my main. A simple example is

Void sendvariable (int x)
{
Int x=2

}

Int main ()
{
…..

Want to get x from above function and do something on it

}

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *