Function using array

Status
Not open for further replies.

Mohan Giri

In Runtime
Messages
144
Hai Everyone.

I have doubt in function using array.

We are calling a function in main with arguments of array element and pointing an integer variable. Like

function(a,&b);

in definition of a function we are doing some manipulation on integer element and assigning the result to the array's formal argument. Will this effect in the array's content.

If I confuse you, please follow the code,

function(x,*y)
{
x=*y+=2;
}
 
I can barely understand what you're trying to ask. If you have a method call, it creates new memory allocations for the values in it. Therefore, you'll end up with the same vales as before. I may be talking about something else, but I don't completely understand your concern. Bleh.
 
Status
Not open for further replies.
Back
Top Bottom