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 number 3.? Help me
how many moles are in 1.2 x 10 ^ 3 grams of ammonia
What is the definition of memoir
What's the lowest common multiple of of 2.2 and 5
i work 25 hours a week and make $5.50 how much money will i earn in one month
how can a branching diagram which plants produce seeds
The perimeter of a rectangle is at most 80 inches. The length of the rectangle is 25 inches. The inequality 80 - 2w > 50 can be used to find w, the width of
A roller coaster track is 3,000 meters long. It takes 100 seconds totravel once around the roller coaster. What is the average speedof the roller coaster? Is th
A scientist finds an organism that cannot move. It has many cells and get food from its environment. In which Kingdom does it
What is the overall tone of this excerpt from "When We Two Parted" by Lord Byron? A. somber B. distressful C. bittersweet D. joyful