From main() I create a struct variable and I pass his address(&) to a function
(this function has a pointer type argument).
Now how can I pass, from this function, the pointer to the struct variable I created from main()?
f(*struct);
f2(*struct);
main()
{
struct a;
f(&a);
}
f(*struct a)
{
f2(what should I write here to pass the pointer?)
}
Should I use a pointer to pointer?
Pointer to pointer are quite confusing can I have some examples or some tutorials?
Thanks in advance.
Edited by Max.89, 03 April 2009 - 07:47 AM.


Sign In
Create Account

Back to top









