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

  • Home
  • SEARCH
  • 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 875543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:17:15+00:00 2026-05-15T11:17:15+00:00

I have a line of code that will work differently depending on the datatypes

  • 0

I have a line of code that will work differently depending on the datatypes “day” and “1”. I believe it is the following although I will check my source code later.

day = day + 1;

Does this make sense? What would the differences be?

  • 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-05-15T11:17:16+00:00Added an answer on May 15, 2026 at 11:17 am

    NSInteger is a type definition that describes an integer – but it is NOT equivalent to int on 64-bit platforms.
    You can examine the typedef by cmd-clicking on NSInteger in Xcode.
    NSInteger is defined as int when building a 32-bit app and as long for 64-bit apps.
    Most of the time you can replace int with NSInteger, but there are some things to consider when doing so.
    Apple’s 64-Bit Transition Guide for Cocoa has some information about that.

    NSNumber is a class that helps you to store numeric types as object. It has methods to convert between different types and methods to retrieve a string representation of your numeric value.
    If you use a variable day of type NSNumber* the way you did in your example, you are not modifying the value of day but its memory address.

    If you are working with time values you also could take a look at NSDate.

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

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Not built-in, but you might want to check out MPArith… May 16, 2026 at 11:48 am
  • Editorial Team
    Editorial Team added an answer The difference here is between single point of return and… May 16, 2026 at 11:48 am
  • Editorial Team
    Editorial Team added an answer Use the Arel methods to do this: t = Post.arel_table… May 16, 2026 at 11:48 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Suppose you have some source code that comes from the unix world. This source
This code doesn't work: URL url = new URL( xmlPath ); InputSource input =
This is driving me nuts! A little piece of code that I can't seem
I have a fairly large program written in C. It spans several files, and
The subversion repository at work was set up without much planning as to its
A friend and I have written an encryption module and we want to port
I think everyone is aware of -server command line JVM parameter. Does it make
Suppose I had the following function: function alertMesg() { alert(This ok function alerts message!);
My company has a client that tracks prices for products from different companies at
This is an odd problem, so I have to provide a bit of background.

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.