quelicristinacr6104 quelicristinacr6104
  • 01-07-2021
  • Computers and Technology
contestada

When a primitive type variable is passed as an argument to a method, what is passed into the receiving method's parameter variable

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 04-07-2021

Answer:

The value of the primitive type variable is passed into the receiving method

Explanation:

Examples of primitive data types are integers, floats, real, double, character, byte, etc.

When any of these data types variables are passed to a method, the method which receives the variables receives the value of the variable being passed.

Take, for instance; the following code segment:

int doubleNum(int num){ ..... }

int main(){ ... num = 2; doubleNum(num);}

The above function doubleNum will receive the value of num (which is 2).

Answer Link

Otras preguntas

What is 3.6 in simplest form
atoms of different elements area. too hard to compare.b. exactly the same.c. different from each other.
George's page contains twice as many typed words as Bill's page and Bill's page contains 50 fewer words than charlie's page. If each person can type 60 words pe
The massive carved stone heads found at Saint Lorenzo and other ancient Olmec sites tell us that the Olmecs
True of false is 9.1 largger than √82
if the football team raises at least $5000, then they can buy new uniforms. the football team raised $5800 what is the conclusion
Write 261 as a decimal
Getting regular exercise is part of good sleep hygiene. true or false
What is consumer demand?
A population of giraffes on a square kilometer of the African savannah contains sixteen individuals. Generally, the giraffes stay in smaller groups, surrounding