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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:23:54+00:00 2026-05-19T22:23:54+00:00

What is the difference? I always use ByVal, but, I don’t really have a

  • 0

What is the difference? I always use ByVal, but, I don’t really have a good idea of when should I and when not…

  • 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-19T22:23:55+00:00Added an answer on May 19, 2026 at 10:23 pm

    If you pass in a reference, when you modify the value in the method, the variable in the call site will also be modified.

    If you pass value, it’s the same as if another variable is created at the method, so even if you modify it, the original variable (at the call site) won’t have its value changed.

    So, indeed, you should usually pass variables as value. Only pass as reference if you have an explicit need to do so.

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

Sidebar

Related Questions

Whenever I have a library that use across different websites/ applications I've always just
I have always wondered WHaT tHE HecK?!? is the difference between JScript and JavaScript.
I have a simple question regarding how to write an always block in a
I´m developing a very memory-consuming app and want to use the largeHeap-Tag, which should
When I'm using big frameworks like the Three20 Framework, I always have the choice
This code always works, even in different browsers: function fooCheck() { alert(internalFoo()); // We
As a developer coming from a Windows background, I'd always find the different Powertoys
What is the difference between early and late binding?
Is there any efficiency difference in an explicit vs implicit inner join? For example:
Is there any difference between int on_exit(void (*function)(int , void *), void *arg); and

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.