Amazon.com Widgets Ch 13 Arrays Allocation?
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 17, 2014, 10:36:38 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Chapter Study
| | |-+ Chapter 13 - Underlying C Language Features
| | | |-+ Ch 13 Arrays Allocation?
Pages: [1] Go Down
Print
Author Topic: Ch 13 Arrays Allocation? (Read 1145 times)
wellaged37
Newbie
*
Posts: 39






on: May 29, 2009, 06:52:11 AM

In the declaration: Fraction *fracts[5] I understand that the array holds five Fractions objects as pointers. I understand that when you allocate and initialize the Fractions that eventually you need to release them. My question is: Do you need to release the array variable itself (fracts)? My guess would be that you don't need to release it, because it is not an object. Could anyone confirm this for me?
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #1 on: May 29, 2009, 07:25:32 AM

Yes, you are correct.  This array fracts is a C array and therefore  is not an object and does not get released.

Cheers,

Steve
Logged
wellaged37
Newbie
*
Posts: 39






Reply #2 on: May 29, 2009, 09:07:10 AM

Thanks Steve for the confirmation.

Regards,
John
Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.