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
DENIUS [597]
3 years ago
12

Write a program that defines an array of integers and a pointer to an integer. Make the pointer point to the beginning of the ar

ray. Then, fill the array with values using the pointer (Note: Do NOT use the array name.). Enhance the program by prompting the user for the values, again using the pointer, not the array name. Use pointer subscript notation to reference the values in the array.
Computers and Technology
1 answer:
Reptile [31]3 years ago
3 0

Answer:

#include<iostream>

using namespace std;

int main()

{

  int a[20],n;

  int *p;

  cout<<"\n enter how many values do you want to enter:";

  cin>>n;

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

  {

      cout<<"\n Enter the "<<i+1 <<"th value :";

      cin>>*(p+i);

      //reading the values into the array using pointer

  }

  cout<<"\n The values in the array using pointer is:\n";

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

  {

      cout<<"\n (p+"<<i<<"): "<<*(p+i);

      //here we can use both *(p+i) or p[i] both are pointer subscript notations

  }

}

Output:

You might be interested in
A command used to find the id number of each running process
Goshia [24]
Tasklist would be the answer.

(:
3 0
4 years ago
________ systems help supervisors by generating databases that act as the foundation for other information systems. Group of ans
Dahasolnce [82]

Answer:

1. Decision support systems

Explanation:

DSS (Decision Support Systems) are systems that provide supports for decisions, judgments and analysis in an organization. They help in solving problems and in decision-making. With DSS, databases that act as foundation for other information systems can be generated for supervisors helping them to make logical analysis of a particular problem hence solving it.

DSS will actually not give the decision, but will guide the decision maker in making the decision by helping to gather raw facts and useful models which enhance decision making.

6 0
4 years ago
Chdtp aoxophg gr72 ae9&gt;3 zqqz
AlekseyPX
So, is this a real problem or just some random typing

8 0
4 years ago
Which of the following is an example of an application ?
-Dominant- [34]
The third one I think
3 0
3 years ago
Read 2 more answers
You can use these finger motions to perform specific functions on a Mac OS system:
notka56 [123]

Answer:

Gestures

Explanation:

Gestures is the name of the Mac feature that makes these finger motions available to perform specific functions on a Mac OS system:

4 0
3 years ago
Other questions:
  • Which statement identifies what the students will be graded on?
    5·2 answers
  • You suspect the hard drive is corrupted. Which window do you open to repair the drive?
    10·1 answer
  • What differences in traffic patterns account for the fact that STDM is a cost-effective form of multiplexing for a voice telepho
    10·1 answer
  • A display or monitor with a larger number of ?
    12·1 answer
  • (40 pointsAnd brainliest answer ASAP) Maria is recording her friend’s graduation ceremony. How can Maria ensure that the video i
    9·1 answer
  • The following code accomplishes which of the tasks written below? Assume list is an int array that stores positive int values on
    9·1 answer
  • StreamPal is an audio-streaming application for mobile devices that allows users to listen to streaming music and connect with o
    6·1 answer
  • Diferencias entre ciencia y tecnologia
    5·1 answer
  • Which of the following activities is not permissible for IT professionals while on the job? Check all of the boxes that apply.
    14·2 answers
  • Write an application that allows a user to enter a filename and an integer representing a file position. Assume that the file is
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!