Returning arrays
#2

Array cannot mark as an reference because it's already an reference.
So u can do:
Code:
new 
  test[999];
test1(t[]){
  t[sizeof(t)-1] = 'h';
}
In addition, return value can be any legal lenth.
Reply


Messages In This Thread
Returning arrays - by niCe - 27.11.2009, 23:16
Re: Returning arrays - by yezizhu - 27.11.2009, 23:31
Re: Returning arrays - by niCe - 27.11.2009, 23:47
Re: Returning arrays - by yezizhu - 28.11.2009, 00:45

Forum Jump:


Users browsing this thread: 2 Guest(s)