Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8108483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:07:23+00:00 2026-06-06T01:07:23+00:00

I wonder does it make any differences? If its declared in our m file,

  • 0

I wonder does it make any differences? If its declared in our m file, is it allocated again(thus comsuming extra and redundant memory) each time we uses or both ways mean the same thing and so doesnt make any different which file I declared it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:07:25+00:00Added an answer on June 6, 2026 at 1:07 am

    The only difference is the scope of the variable. A variable declared in the header file would be available to all methods within the class. A variable declared within a method is only accessible within that method.

    As far as memory goes, in general there is no difference between having your variable declared in the header file or in the .m file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Question: does operand order make any difference when evaluating equality or identity in JavaScript?
Does it make any sense to use bitfields to store and manage a schedule?
I wonder why the following does not work with Visual studio typedef struct {
Does anyone experience to get depth map from stereo pair? I wonder if are
Possible Duplicate: What does new() mean? Like in title. I wonder what this syntax
I wonder if it is possible to make your application multilingual by simply creating
Any function that consists of a return statement only could be declared constexpr and
I think everyone is aware of -server command line JVM parameter. Does it make
I wonder is there any positive effect in using UNSIGNED flag on defining some
I wonder if it's possible to make a query ignore a table if there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.