This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Creating parameters for functions calls


Thx for your answer,

But I believe the problem is not the contruction of the parameters of the function, but the construction of the adress of an array and give it at a function call.
Maybe, I don't say good my problem in my previous mail.


Example:
If I have an array A in a source code, I want to create the address of this array and to give it at a function which I have insert:


main{
int A[10];
int b;
...
...

foo( & A[2]); //This is the statement that I want to insert

b=A[2];
...
...
}

I make clear that I  success in doing:
main{
int A;
int b;
...
...
b=A;

foo( & A);
...
}

How can I to build this statement ?

Sorry for my bad english ( if it is not comprehensible, tell it me ! ),
Thanks in advance,

Antoine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]