Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • toastcrunch
    toastcrunch
    481 Points

    Why is it c and not *c when calling the make Sphere function in the main()?

    Posted August 19, 2015 1:32pm by toastcrunch
    toastcrunch
    481 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    0 Answers

  • Ankit Singh
    PLUS
    Ankit Singh
    Courses Plus Student 1,752 Points

    What is tds aspect of programing which Mr Douglass has said in the last part of the objective-c struct video

    Posted August 17, 2015 12:49pm by Ankit Singh
    Ankit Singh
    Courses Plus Student 1,752 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    4 Answers

  • Laurie Gray
    Laurie Gray
    23,119 Points

    Is a struct kind of like an Object in this example?

    Posted May 7, 2015 10:48am by Laurie Gray
    Laurie Gray
    23,119 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

  • azumi yuan
    azumi yuan
    3,126 Points

    sorry i really don't get this video can someone please teach me what's struct about?

    Posted April 27, 2015 10:30am by azumi yuan
    azumi yuan
    3,126 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • ruo pu koh
    ruo pu koh
    2,669 Points

    Confusing example.

    Posted March 16, 2015 12:09am by ruo pu koh
    ruo pu koh
    2,669 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • Ryan Jin
    Ryan Jin
    15,337 Points

    Why it is *c

    Posted March 12, 2015 10:52am by Ryan Jin
    Ryan Jin
    15,337 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    0 Answers

  • Antoine Guenet
    Antoine Guenet
    2,843 Points

    Why declare variables c and r in main() ?

    Posted February 22, 2015 8:42pm by Antoine Guenet
    Antoine Guenet
    2,843 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • Humza Choudry
    Humza Choudry
    237 Points

    Before main() and after main()...?

    Posted February 9, 2015 5:23am by Humza Choudry
    Humza Choudry
    237 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

  • Humza Choudry
    Humza Choudry
    237 Points

    Why Reassign the values over and over?

    Posted February 9, 2015 5:17am by Humza Choudry
    Humza Choudry
    237 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    0 Answers

  • Humza Choudry
    Humza Choudry
    237 Points

    typedef and typedef struct ??

    Posted February 9, 2015 5:10am by Humza Choudry
    Humza Choudry
    237 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    0 Answers

  • Shannon Gold
    Shannon Gold
    4,426 Points

    why not use array syntax for ball.sphere?

    Posted January 27, 2015 6:49pm by Shannon Gold
    Shannon Gold
    4,426 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    0 Answers

  • Tayyab Hanif
    Tayyab Hanif
    3,601 Points

    Is the use of function necessary in struc ?

    Posted December 24, 2014 11:29am by Tayyab Hanif
    Tayyab Hanif
    3,601 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • Greyson Morrow
    Greyson Morrow
    279 Points

    Why a pointer for c and not for r

    Posted November 5, 2014 7:00pm by Greyson Morrow
    Greyson Morrow
    279 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

  • Mike Lange
    Mike Lange
    794 Points

    Following this tutorial I receive errors in xCode 6 - Implicit declaration of function makeSphere invalid

    Posted October 13, 2014 5:00am by Mike Lange
    Mike Lange
    794 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

  • Chris K
    Chris K
    7,425 Points

    Why are some things declared before int main() and some things after the return?

    Posted October 12, 2014 2:43am by Chris K
    Chris K
    7,425 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    3 Answers

  • Akhilesh Bhartiya
    PLUS
    Akhilesh Bhartiya
    Courses Plus Student 355 Points

    pointer in c

    Posted September 5, 2014 4:42am by Akhilesh Bhartiya
    Akhilesh Bhartiya
    Courses Plus Student 355 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • Tristan Gaebler
    Tristan Gaebler
    6,204 Points

    Please explain structs for me!

    Posted August 29, 2014 12:57am by Tristan Gaebler
    Tristan Gaebler
    6,204 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • Anusha Chillara
    Anusha Chillara
    2,047 Points

    Sphere makeSphere

    Posted June 22, 2014 12:02am by Anusha Chillara
    Anusha Chillara
    2,047 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

  • bronnyreinhardt
    bronnyreinhardt
    1,007 Points

    Encapsulation

    Posted June 9, 2014 11:28am by bronnyreinhardt
    bronnyreinhardt
    1,007 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

  • Daniel Behar
    Daniel Behar
    487 Points

    Question about using a pointer as a parameter when declaring makeSphere()

    Posted May 25, 2014 12:50pm by Daniel Behar
    Daniel Behar
    487 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • Kingsley Peh
    Kingsley Peh
    450 Points

    Is it mandatory to use a * annotation to accept array as parameter in a function ?

    Posted April 27, 2014 4:34pm by Kingsley Peh
    Kingsley Peh
    450 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    1 Answer

  • Chee Mervin
    PLUS
    Chee Mervin
    Courses Plus Student 4,195 Points

    Colour coded text in with regards to after declaring a struct item.

    Posted April 27, 2014 6:45am by Chee Mervin
    Chee Mervin
    Courses Plus Student 4,195 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

  • Sebastian Nitu
    Sebastian Nitu
    8,616 Points

    Why does Xcode ask me for ";"?

    Posted March 13, 2014 3:19pm by Sebastian Nitu
    Sebastian Nitu
    8,616 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    7 Answers

  • Robert Kwiat
    Robert Kwiat
    5,349 Points

    Is there a \n for objective c

    Posted March 3, 2014 12:00pm by Robert Kwiat
    Robert Kwiat
    5,349 Points
    • iOS
    • Objective-C Basics (Retired)
    • Pointers and Memory
    • Structs

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord