answersLogoWhite

0

Yes, passing a variable by reference gives you a pointer to the original variable, meaning you can change its value from within the function being called and the change will affect the original variable.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Which function enables to receive single character input?

getchar();


What enables us to use a function that has been declared and defined in source code?

If the function has been declared and defined, then the only remaining issue is scope, i.e. visibility.


What is difference between call by value and pass by value?

When you pass by value, the function's parameter is assigned the value of the argument that was passed. When you pass by reference, the function's reference parameter is assigned the address of the argument. In other words, pass by value copies the value, pass by reference passes the variable itself.Pass by reference is always the preferred method of passing arguments to functions when those arguments are complex objects. If the argument is a primitive data type then the cost in copying the value is minimal, but copying a complex object is expensive in terms of performance and memory consumption. If the function parameter is declare constant, you can be assured the object's immutable members will not be affected by the function. If it is non-constant and you do not wish your object to be altered, you can either copy the object and pass the copy, or pass the object by value if the function is overloaded to cater for this eventuality (good code will provide both options).


What is a graphic representation that is often a small image on a button that enables you to run a program or program function?

Icon


What function enables the user to input information while the program is being executed in c?

The scanf() function is a commonly used function to input information during the execution of a program. scanf() function has its prototype in the stdio.h header file. To accept and display a number: int num; printf("Enter a number: "); scanf("%d",&num); printf("You entered %d",num); To accept and display a character, replace %d with %c and make num a character variable [char]. Plus: gets, fgets, read, fread, getchar, getc, fgetc, getch...

Related Questions

Function of flagella?

Enables cells to movement.


Can the insert function button feature be used to enter a function?

Yes it can. It enables you to enter a function into the worksheet.


What is the significance of the Production function?

*it enables the circular flow of economy


Which function enables to receive single character input?

getchar();


What is the purpose of negative slope?

It enables you to show a relationship where an increase in one variable results in a decrease in the other.


Characteristics of an organism that enables it to function more effectively in its surroundings?

adaptation


Which function key enables you to refresh your view?

In most cases F5


What is the function wizard in Excel?

It enables you to choose a function and helps you through the process of choosing the elements you need to use it.


When something a variable it is able to vary or change?

Yes, a variable is a placeholder in programming or mathematics that can represent different values. It allows for flexibility and enables the use of different data in calculations or operations.


The function of money that enables prices of goods and services to be quoted is called?

Unit of Account


What is the function of the MS Excel vertical scrollbar?

It enables you to move up and down the worksheet.


What you change on purpose in the experiment?

In an experiment, I would intentionally change the independent variable to observe its effect on the dependent variable. This deliberate alteration helps determine causal relationships and enables scientists to draw conclusions about the relationship between the variables being studied.