Hey,
Thie may seem like a stupid question, and you may tell me to go learn about pointers but can you guys try and help me out here.
I want to transfer the value of a variable from one function to another for example:
int main()
{
int i;
i = 10;
}
int function1()
{
int b;
b = i
//I want 'b' to have the value of 'i'which is 10, how would i do this with using pointers or is there another way around?
}
Thanks for any feedback.
Thie may seem like a stupid question, and you may tell me to go learn about pointers but can you guys try and help me out here.
I want to transfer the value of a variable from one function to another for example:
int main()
{
int i;
i = 10;
}
int function1()
{
int b;
b = i
//I want 'b' to have the value of 'i'which is 10, how would i do this with using pointers or is there another way around?
}
Thanks for any feedback.