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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:19:27+00:00 2026-05-14T01:19:27+00:00

Hi all is the memory allocated for different types of variable say float, int

  • 0

Hi all is the memory allocated for different types of variable say float, int and char is different for different architecture?
Thanks in advance.

  • 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-14T01:19:27+00:00Added an answer on May 14, 2026 at 1:19 am

    Yes, definitely. int, in particular, is particularly prone to that: old 8-bit and 16-bit architectures invariably had 16-bit ints, while today’s 32-bit and 64-bit ones invariably use 32-bit ints. That’s how int is defined to be — the “natural” size of integers for the architecture you’re compiling for!

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

Sidebar

Related Questions

I'm writing a driver that requires me to clear all the memory allocated to
Does FileChannel#map allocate all the memory needed for the resulting ByteBuffer immediately, or is
Does Linux automatically re-claim all memory used by an applications immediately? If so then
I am trying to plug up all my memory leaks (which is massive). I
I have a strong use case for pre-allocating all the memory I need upfront
I am aware of that All associated result memory is automatically freed at the
Is there a way I can find out all changes to memory by a
I know what RAII does. It is all about preventing memory leaks etc. when/if
First of all I am getting memory leak while scrolling tableview out of bounds.
First of all, using delete for anything allocated with new[] is undefined behaviour according

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.