subject

What set of code correctly initializes all elements of the array ar to the value 0, given the declaration int ar[3];
Group of answer choices

A. ndx = 1;
while (ndx < 3) {
ar[0] = ndx;
ndx++;
}

B. ndx = 1;
while (ndx < 3) {
ar[ndx] = 0;
++ndx;
}

C. ndx = 0;
while (ndx < 3) {
ar[ndx] = 0;
ndx++;
}

D. ndx = 0;
while (ndx < 3) {
ar[0] = ndx;
ndx++;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Why might you choose to create a functional resume
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
You know the right answer?
What set of code correctly initializes all elements of the array ar to the value 0, given the declar...
Questions
question
Biology, 13.07.2021 17:50
question
Mathematics, 13.07.2021 17:50
Questions on the website: 13722360