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
zalisa [80]
2 years ago
7

What are 2 main differences betweenarrays andstructs?

Computers and Technology
1 answer:
miv72 [106K]2 years ago
5 0

Answer:

The two main differences between arrays and structures are as following according to me :-

1. Array is collection of data elements of same data type while a structure is collection of variables of different data types.

2.Array is a primitive data type while structure is a user defined data type.

There are other differences also which are as following:-

1. The size of array is fixed while the size of structure is not fixed as structure can contain different variables of different data types.

2.array is declared as following :-

int array [100];

where 100 is the size of the array means it can store up to 100 integer values.

struct class{

int roll_number;

char *name;

int admission_no;

};

3.Traversing and searching in an array is easy and fast while it is difficult and slow in structures.

You might be interested in
Voice and fingerprint _______ can significantly improve the security of physical devices and provide stronger authentication for
zysi [14]

Answer:

biometrics

Explanation:

Voice and fingerprint <u>biometrics</u> can significantly improve the security of physical devices and provide stronger authentication for remote access or cloud services.

6 0
3 years ago
What are the benefits of using presentations to organize and deliver information?
bearhunter [10]
Hello.

The benefits of using presentations to organize and deliver information are: it keeps things in order, keeps peoples attention longer, and it looks more professional.
4 0
3 years ago
Your program does not calculate the average correctly.
Agata [3.3K]

Answer:

3

Explanation:

  • I think 3 is really the answer
7 0
2 years ago
What is an equation of the line that passes through th e points (-2,-7) and (-1,-3)
Leokris [45]

Answer:

y=4x+1

Explanation:

8 0
2 years ago
Keyshia adds shapes with text to show the steps involved in taking the temperature of a liquid in a laboratory. She
kow [346]

Answer:

1. go to the view tab

2. guides

3. format shape pane

Explanation:

5 0
2 years ago
Other questions:
  • Playville is a tiny town in fictional middle earth, which is inhabited by dwarves and elves. Playville has a playground to which
    6·1 answer
  • What is a flash player?
    9·2 answers
  • Using a personal computer to produce high quality printed documents
    8·1 answer
  • In mathematics, "quadrant I" of the cartesian plane is the part of the plane where x and y are both positive. Given a variable,
    11·1 answer
  • Student creates a Raptor program and uses the File Input and Output method to find the average of 5 test scores stored in a text
    5·1 answer
  • I'm trying to export a video with HitFilm Express, I am either unable to click the export button or it gets to 43% and just stop
    5·1 answer
  • You are troubleshooting a client connectivity problem on an Ethernet network. The client system has intermittent connectivity to
    9·1 answer
  • ¿porque y como surge la informatica y las computadoras
    13·1 answer
  • What statement describes the last step in evaluating<br> information?
    10·1 answer
  • What is the difference between an html opening tag and a closing tag?.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!