Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-18-2005, 02:46 PM   #1 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 145

Mohan Giri

Default Function using array

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[i],&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;
}
Mohan Giri is offline  
Old 05-03-2005, 05:52 PM   #2 (permalink)
 
Ultra Techie

Join Date: Apr 2005

Posts: 950

M4A1 is on a distinguished road

Send a message via AIM to M4A1
Default

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.
M4A1 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On