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
Travka [436]
3 years ago
13

Assume that ip has been declared to be a pointer to int and that enrollment has been declared to be an array of 20 elements . As

sume also that section has been declared to be an int and has been initialized to some value between 5 and 10.Write a statement that makes ip point to the element in the array indexed by section
Computers and Technology
1 answer:
Vitek1552 [10]3 years ago
5 0

Answer:

ip = enrollment + section;

Explanation:

The variable ip has been declared to be a pointer to int.

int * ip;

The variable enrollment has been declared as an array of 20 elements .

int enrollment[20];

The variable section has been declared as an int.

int section;

In order to make ip point to the element in the array indexed by section, we can use the following statement :

ip = enrollment + section;

This will make ip point to enrollment[section].

You might be interested in
What is an electronic ledger that tracks mathematical data
anyanavicka [17]
Computer or calculater.hope this helps
7 0
3 years ago
4. Refer to the following code the answer the remaining questions. loop: load r1, r5, 40 ; r1  data_memory[r5 + 40] add r1, r1,
Anni [7]

Answer:

See explaination

Explanation:

Loop Unrolling

Assembly code

loop:

load r1, r5, 40 //r1 = Mem[r5 + 40]

load r6, r5, 36 //r6 = Mem[r5 + 36]

add r7, r6, r2 //r7 = r6 + r2

store r7, r5, 36 //Mem[r5 + 36] = r7

add r1, r1,r2 //r1 = r1 + r2

store r1, r5, 40 //Mem[r5 + 40] = r1

addi r5, r5, -8 //r5 = r5 -8

bne r5, 0, loop //if(r5 != 0)branch to loop

4 0
4 years ago
Why was manufacturing such a slow and costly process before the Industrial Revolution?
ohaa [14]

Answer:

work was done by hand

Explanation:

Back then they didn't have machines

hope this helped

~chara

8 0
3 years ago
what tool can a student use to make sure his or her work paper does not take credit for someone else's work ?
AlekseyPX

You can use a plagiarism checker.

8 0
3 years ago
I wanna learn coding, programming (to create my own websites, games, apps, etc)
AfilCa [17]

Answer: computer science cause that help you learn about the computer as well and the programming

Explanation:

8 0
4 years ago
Other questions:
  • ______ is a process that marks the location of tracks and sectors on a disk.
    6·1 answer
  • Mary needs to choose the _____ menu in order to place the text in a desirable fashion around the image
    12·2 answers
  • Is there an answer to these picture?
    12·1 answer
  • Write a program that prints the day number of the year, given the date in the form month-day-year. For example, if the input is
    9·1 answer
  • What tab should you choose to locate the copy and paste tool?
    10·2 answers
  • Gloria is adding footers to a PowerPoint template for students to use in a literature class. Each student must choose an author
    13·2 answers
  • Which option is considered a part of the document that is used to collect specific and predefined information?
    7·1 answer
  • Your program analyzes complex data.
    7·1 answer
  • Wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww!
    7·1 answer
  • Question 7 of 25
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!