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 4066194
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:06:14+00:00 2026-05-20T16:06:14+00:00

Possible Duplicate: sizeof(int) on x64? The size of IntPtr changes from 4 to 8

  • 0

Possible Duplicate:
sizeof(int) on x64?

The size of IntPtr changes from 4 to 8 when compiled for x64 versus x86.

Does the size of int also change, or is it still Int32?

This question is particularly important when using pinvoke and dealing with interop calls. Do all “int” types need to be explicitly changed to be declared as Int32?

  • 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-20T16:06:15+00:00Added an answer on May 20, 2026 at 4:06 pm

    No. “int” in C# is always defined as an alias for Int32 as part of the C# language specification, which is always the same size. Using “int” or “Int32” will produce exactly the same IL.

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

Sidebar

Related Questions

Possible Duplicate: size of int, long, etc Does the size of an int depend
Possible Duplicate: Does the size of an int depend on the compiler and/or processor?
Possible Duplicate: Sizeof an array in the C programming language? Why is the size
Possible Duplicate: sizeof (int) == sizeof (void*)? I was wondering whether it is guaranteed
Possible Duplicate: Sizeof an array in the C programming language? Why does a C-Array
Possible Duplicate: How does this “size of array” template function work? Is there any
Possible Duplicate: How does delete[] “know” the size of the operand array? In the
Possible Duplicate: Different answers from strlen and sizeof for Pointer & Array based init
Possible Duplicate: size of a datatype in c I want to ask you does
Possible Duplicate: Is sizeof(bool) implementation defined in C++? Im writing code that is compiled

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.