I'm trying to pass variables from one function to another.
Like for example:
FuncA: takes in 3 inputs from the user and I want to use those 3 inputs in FuncB.
How would I do that? Would I just return the 3 values from FuncA and just pass it in as parameter of Func B?
Would I do something like this? **Without using pointers.
int FuncA(void);
int FuncB(int A, int B, int C, int D, int E);
int main(void)
{
FuncA(void);
FuncB(A,B,C);
}
int FuncA(void)
{
printf("Enter 3 number:");
scanf("%d %d %d" &A, &B, &C);
return A, B, C;
}
int FuncB(int A, int B, int C)
{
.............
}