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
nydimaria [60]
3 years ago
6

Allocate 100 integers and assign the resulting pointers to the elements of ip_arr. Initialize each integer value to -1.

Computers and Technology
1 answer:
dmitriy555 [2]3 years ago
5 0

Answer:

#include <iostream>

using namespace std;

int main() {

   int *ip_arr,n;//pointer name inp_arr and integer n to store the size.

   cin>>n;//size.

   for(int  i=0;i<n;i++)

   ip_arr[i]=-1;//assigning -1 to every element.

  for(int i=0;i<n;i++)

  {

       cout<<ip_arr[i]<<" ";//printing every element.

  }

return 0;

}

output:-

100

-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1  

Explanation:

I am taking input of size.You should enter 100 for 100 values which have value -1.

You might be interested in
When a chart is selected, numerous customization options can be found on which Chart Tools tabs?
Finger [1]

When a chart is selected, numerous customization options can be found on which the Chart Tools tabs: Design and Format . Correct answer:B This tab enables you to choose predefined layouts and styles , to change the layout of chart elements manually, to change the formatting style but also to save a chart as a chart template.

3 0
3 years ago
Read 2 more answers
What is a help desk
vagabundo [1.1K]

Answer:

C: An individual who diagnoses and resolves users' technical hardware and software problems

6 0
4 years ago
Under which menu option of a word processing program does a star appear
alexandr1967 [171]

Answer:

Under the menu option Insert.

Explanation:

Microsoft word allows you to insert different shapes in the document. To find these shapes, you have to open the menu option Insert. Then, you will have to go to Shapes. After that, you have to click there and a box will appear where you will have different shapes that you can use. There you will find the shape of a star that you can include in the document and adjust different features like size and color.

5 0
3 years ago
Read 2 more answers
A list cannot use appendleft but a _____ can.
Dmitry [639]

Answer:

String

Explanation:

I think it is this one.

3 0
3 years ago
When a number gets assigned to a variable that already has a value __________. the new number overwrites the previous value at t
sammy [17]

Answer: the new number overwrites the previous value at that memory location

Explanation:

8 0
3 years ago
Other questions:
  • How do you calculate the total voltage in a series circuit with more than one component?
    13·2 answers
  • The variable sentence stores a string. Write code to determine how many words in sentence start and end with the same letter, in
    13·1 answer
  • Assume you have functions f and g such that f(n) is O(g(n)). For each of the following statements, decide whether you think it i
    12·1 answer
  • Use the get_seconds function to work out the amount of seconds in 2 hours and 30 minutes, then add this number to the amount of
    13·1 answer
  • Inthe old days, databases did NOT support ____________.
    10·1 answer
  • Assume that processor refers to an object that provides a void method named process that takes no arguments. As it happens, the
    5·1 answer
  • How do you make computers or microwaves?
    13·1 answer
  • How do we store value in a variable? Give an example
    15·1 answer
  • Who knows my sister better?
    15·2 answers
  • When viewing an e-book section of an assignment in launchpad, you can return to your main course page at any time by clicking th
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!