Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Array Return
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 4112 of 4218
Post > Topic >>

Array Return

by cplusplusquestion@[EMAIL PROTECTED] Apr 14, 2008 at 01:41 AM

There is an array:
int a[MAX];

and the function will return a[MAX] value:

int* return_a_value(){
    return a;
}

Is this code correct?
 




 7 Posts in Topic:
Array Return
cplusplusquestion@[EMAIL   2008-04-14 01:41:28 
Re: Array Return
Richard Heathfield <rj  2008-04-14 09:08:49 
Re: Array Return
cplusplusquestion@[EMAIL   2008-04-14 02:14:18 
Re: Array Return
Richard Heathfield <rj  2008-04-14 09:21:47 
Re: Array Return
cplusplusquestion@[EMAIL   2008-04-14 02:22:29 
Re: Array Return
Richard Heathfield <rj  2008-04-14 11:01:29 
Re: Array Return
"Daniel T." <  2008-04-14 06:58:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:11:56 CDT 2008.