1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nimfa-mama [501]
3 years ago
14

If there is an int/integer in a array, and the same int/integer comes at the same spot, does it cancel each other out or does it

reassing the value? (Java)
Computers and Technology
1 answer:
joja [24]3 years ago
7 0

Answer:

The answer to this question is given below in the explanation section.

Explanation:

When you use an array in the program, it occupies the memory where to store the data. However, it is noted that the other array cannot store the variable value where the first array has to store its variable value.

however, when you reassign the value their index position of the array, the values are reassigned. But it also depends on the CPU, because sometimes when you release the memory from the array, maybe some other programs get to occupy that location where the first array values were stored.

However, In Java, it is possible that the same int/integer comes at the same spot of the existing integer in an array, then the value at that particular index is reassigned.

You might be interested in
Modern car odometers can record up to a million miles driven. What happens to the odometer reading when a car drives beyond its
Law Incorporation [45]

Answer:

<h2>It would go to 1000000. </h2><h2>Explanation:</h2>

  Unlike old vehicle odometers that will reach 999999 and stay there(though it is very unlikely to reach that figure) new vehicle odometers have the seventh digit reading and when it passes 999999 it would clock to 1000000.

     But in reality it is less likely for vehicles to reach the 999999 mark and most vehicle owners do not get to see their vehicles reach this mark as the vehicle will either be scrapped or abandoned before it gets to that million mile

Further, the ideal behind this million miles is due to the act of bad guys who tend to spin vehicle odometers to falsify their readings making it seem as though it has not gone a long mile.

6 0
4 years ago
Write a c++ function, largestnum, that takes as parameters a double array and its size and returns the index of the last occurre
miv72 [106K]
Not a Question so how am i supposed to help with this problem
6 0
3 years ago
ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP ASAP NEED HELP​
anyanavicka [17]

Answer:

<em><u>1</u></em><em><u>3</u></em><em><u>.</u></em><em><u>c</u></em>

<em><u>1</u></em><em><u>4</u></em><em><u>.</u></em><em><u>d</u></em>

<em><u>1</u></em><em><u>5</u></em><em><u>.</u></em><em><u>b</u></em>

<em><u>1</u></em><em><u>6</u></em><em><u>.</u></em><em><u>a</u></em>

<em><u>1</u></em><em><u>7</u></em><em><u>.</u></em><em><u>c</u></em>

Explanation:

<em><u>please</u></em><em><u> </u></em><em><u>brainleist</u></em><em><u> </u></em><em><u> </u></em><em><u>please</u></em><em><u> </u></em><em><u>☻</u></em><em><u>☺️</u></em><em><u>❤</u></em><em><u>♨️</u></em>

8 0
3 years ago
Read 2 more answers
Rock, Paper, Scissors is a two-player game in which each player chooses one of three items. If both players choose the same item
mezya [45]

Answer:

The answer is c

Explanation:

7 0
4 years ago
Explain working principle of computer?​
Sonbull [250]

Answer:

The working principle of the computer system. Computers do the work primarily in the machine and we can not see, a control center that converts the information data input to output. This control center, called the central processing unit (CPU), How Computers Work is a very complex system.

Explanation:

5 0
3 years ago
Other questions:
  • Which would be a responsible use of technology used by victims of cyberbullying? finding ways to strike back at bullies online.
    15·1 answer
  • ∑_(A,B,C,D,E)▒〖(2,4,6,8,10,12,14,16,18,20,22,24,26,28,30)〗
    8·1 answer
  • The leader in student travel who provides educational tours at affordable prices is called?
    8·1 answer
  • Choose the words that make the following sentence true.<br> Primary memory is
    5·1 answer
  • Write a program that reads a list of integers into a vector, and outputs the two smallest integers in the list, in ascending ord
    5·1 answer
  • As the first step, load the dataset from airline-safety.csv by defining the load_data function below. Have this function return
    9·1 answer
  • Analyze the code and identity the value of variable a,b and c after the code execution. int a=40, b=50, c=60; if(! (a&gt;=40)) b
    15·1 answer
  • The one who will defeat me in this typing race I will mark him/her brainliest
    10·1 answer
  • Open the same text file that you have created in Exercise-Four ( in the sample output, I have created the file name personal). W
    7·1 answer
  • LIST THE BEST 10 3D PRINTERS WITH THEIR RESPECTIVE APPS.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!