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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:46:49+00:00 2026-06-08T21:46:49+00:00

For instance, real number in Java takes 8 byte while it only takes 4

  • 0

For instance, real number in Java takes 8 byte while it only takes 4 byte in C++. Similarly, for character, Java takes 2 bytes, but C++ takes only 1 byte. Why are they of different size?

  • 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-08T21:46:50+00:00Added an answer on June 8, 2026 at 9:46 pm

    What you are stating isn’t true. C and C++ don’t have any fixed sized types (apart from those specified in stdint.h).

    And if you didn’t get you answer from that statement, here is an explicit one:

    “There is a difference, because Java contains fixed sized data types, while all basic data types in C and C++ depend on the actual platform (machine architecture + operating system) the program is compiled for.”

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

Sidebar

Related Questions

For instance, this takes 4 lines which is too much space for such a
An instance of java.util.Properties is passed to me which has been created using: [...]
According to a number of tutorials (including Real World Haskell) one can, using ghci
So I am primarily a C# and Java developer but I suppose this question
I am trying to get the number of children that a node has but
I need a function which takes an arbitrary number of arguments (All of the
This one is a real head scratcher... I have a number of command links
instance Monad (Either a) where return = Left fail = Right Left x >>=
For instance, if I have an class: public class StuffHolder { List<Stuff> myList; public
For instance: I have a swf, lets say A, that loads another swf, B.

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.