ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

یه سوال فنی

 
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming
View previous topic :: View next topic  
Author Message
maleki
مهمون يكي دو روزه


Joined: 23 Mar 2009
Posts: 4

PostPosted: Fri May 15, 2009 7:02 pm    Post subject: یه سوال فنی Reply with quote

چراوقتی که قرار نیست مقدار یک پارامتر که از نوع ارایه است تغییر کند باز هم ممکن است ترجیح دهیم ان را با ارجاع به تابع ارسال کنیم.
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Sat May 16, 2009 8:51 am    Post subject: Reply with quote

اصلا کلا آرایه رو با ارجاع می فرستیم چون در تبادل پارامترها مقادیر آرایه حجم زیادی را می گیرند . بنابراین اینکه چند کپی از آن ها داشته باشیم . جز اتلاف حافظه مزیتی ندارد .
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum