answersLogoWhite

0


Best Answer

with an assignment:

variable = value

variable += value

variable /= -3;

...

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How you can modify an integer variable value in a function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is the value 3 a string variable?

No, it is an integer. You can save an integer value to a string variable but, in this case the value is explicitly stated to be 3.


How can you check if a variable is a string or an integer in PHP?

Integers - The "is_int()" function can be used to check if a variable is has an integer for its value. ---- is_int($variable); // Returns true if $variable is an integer - otherwise false ---- Numeric Strings - Numeric strings are strings with numbers (or things that count as numbers) in them. Numeric-string variables are not integer variables. Numeric-string variables are passed on through forms, instead of integer variables - if you were wondering. Check form values using string formats, and not integer formats. The "is_numeric()" function can be used to check if a variable is a string with numbers - and only numbers - in it (except things that add up to be numbers). ---- is_numeric($variable); // Returns true if $variable is a string, and only contains numbers (broadly speaking) - false otherwise ---- Strings - String values are just text, basically. String variables can contain integers, but that does not make it an integer-type variable - it makes it a numeric string variable. The "is_string" function can be used to check if a variable contains the value of a string. ---- is_string($variable); // Returns true if $variable is a string - false otherwise


How do you turn a positive integer into a negative integer in programming?

Store the absolute value of the desired integer in a variable. Multiply the absolute value by two. Substract the new integer by the old integer.


Can you declare printf for integer variable?

printf is declared in stdio.hFormat specifier for an integer value is %d.


What is the result of substituting a value for a variable in a function?

To find the value of the other variable


What is the output variable of a function?

It is a value in the co-domain [range] of the function.


How is solving for a specified variable in a formula different to finding a solution for an equation or inequality?

With a formula, you know the variable's value, and you have to calculate the value of the function of it. With an equation, you know the function's value, and you have to calculate the value of the variable.


How is solving for a specified variable in a formula similar to finding a solution for an equation or inequality?

With a formula, you know the variable's value, and you have to calculate the value of the function of it. With an equation, you know the function's value, and you have to calculate the value of the variable.


A function is a rule that assigns each value of the variable to exactly one value of the dependent variable?

I found two answers for this question. A function is a rule that assigns to each value of one variable (called the independent variable) exactly one value of another variable (called the dependent variable.) A function is a rule that assigns to each input value a unique output value.


How do you invoke function result () takes two float argument and returns an integer in c plus plus program?

You can do this by creating a forwarddeclaration of the function. You can call the forward drclared function inside the main to use it.int result(float num1, float num2);intmain(void){int value = result(3.14, 2.74);return (0);}intresult(float num1, float num2){int value = 0;// function codes goes here// you can alter the value of variable 'value'return (value);}The returning value of the 'result()' function is assigned to variable 'value' in 'main()'.


Is the greatest integer function a continuous funcion?

No. It has a discontinuity at every integer value.


In mathematics what is a limiting value?

If the value of a function cannot be determined for any value of the independent variable, then, the value the function seems to be approaching would be its limiting value for that particular value of the independent variable.