Hi guys,
When a user defined fucntion returns a value, it goes to the fuction in the main right?. And that value has to be assigned to a variable right?.
for example:
so if I want to use the value in the variable "ans". I would just call the function like this:Code:void main()
{
ans=function();
}
int function()
{
int add;
add=1+3;
return add;
}
or like thisCode:funtion();
thanksCode:funtion(ans);