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

The Archive Base Latest Questions

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

a: 4; 4.0f; text; b: 4.0/5.3; 1.0f*2.3f+3.5f; super + man; Questions 1) Does this

  • 0

a:

4;
4.0f;
"text";

b:

4.0/5.3;
1.0f*2.3f+3.5f;
"super" + "man";

Questions

1) Does this code take up memory?

2) Does the code in b take up more memory than the code in a?

3) Could anyone explain in detail what happens internally?

EDIT:
“super” + “man” is a bad example, it’s not correct in the first place. (thanks to Michael Krelin)
Secondly, putting strings in the example was a bad idea.

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

    It depends on the compiler, the computer’s architecture, etc.

    The compiler will most likely calculate the values of these expressions at compile time if it can be sure that the result is always the same. The result of the expression can then be placed directly into the output file, instead of the instructions needed to calculate the result. But as far as I am aware the compiler is not required to perform these sorts of optimizations.

    If the expression is evaluated at compile time, the performance at runtime will be the same as if you wrote the result directly in the source code.

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

Sidebar

Related Questions

This code was supposed to convert text to image public void onCreate(Bundle savedInstanceState) {
Please consider this code: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup
I want to create super script for desired text selected by user. I found
text = urllib.urlopen('www.text.com').read() frase = re.search(your text here(.*), text).group() With these code, I get
I'm trying to make a Hyperlink that contains text with super- and/or subscripts. I've
I started writing a super-simple text adventure game a few months ago, and I
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // mEditor=(TextView)findViewById(R.id.text); } @Override public boolean
I have a string to encyrpt: $encryptThis = Super Secret Text; echo openssl_encrypt($encryptThis, 'aes-128-cbc',
This is super simple and I'm completely baffled by this behavior. I want my
- (void)viewDidLoad { [super viewDidLoad]; objectiveLabel.text = objectstring; objectiveLabel.lineBreakMode = UILineBreakModeWordWrap; objectiveLabel.numberOfLines = 0;

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.