SaucetereAreo SaucetereAreo
  • 19-05-2017
  • Computers and Technology
contestada

Write the header for a function addOne that accepts a single integer reference parameter and returns nothing. Name the parameter x.

Respuesta :

tonb
tonb tonb
  • 19-05-2017
In C++ it would be: void addOne(int& x);

In C# it would be: void addOne( ref int x)

In JAVA you would have to package the integer inside an object, since it doesn't pass value types by reference.
Answer Link

Otras preguntas

Number 13 please show me in the least steps possible
How do you find the x intercept and coordinates of the vertexfor the parabola y=x^2-14x+49????
Materials that are poor conductors of thermal energy are called..... Materials that are good conductors of thermal energy are called ...
Find the density of an object that has a mass of 5 kg and a volume of 50 cm3
why co does not obey lewis octet rule
A girl weighs 200 newtons. How much work does she do climbing 10 meters of steps?
differenciate by first principles f(x) = 4x²-4x-3
what are the starting ingredients of photosynthesis?
Materials that are poor conductors of thermal energy are called..... Materials that are good conductors of thermal energy are called ...
What Does Pie Equal if it is not available