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 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;
}