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]
3 years ago
7

What are 2 main differences betweenarrays andstructs?

Computers and Technology
1 answer:
miv72 [106K]3 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
It's generally best to use what types of sites for factual internet research? Select all that apply from the choices below.
kvv77 [185]

Answer:

I would go with A and B.

Explanation:

The .edu extension means that the information has been verified by educational institutions and most of the time even run by them. This is why it's good to trust sites with the .edu extension.

Similarly, .gov is run by government organizations so not just anyone can upload or edit content. Governments surely fact-check their information before uploading it to their website so they are trustworthy sources.

7 0
2 years ago
Read 2 more answers
What is the maximum number of colors that should be used on a slide?
gavmur [86]
The most commonly accepted amount of colors on one slide is 4
7 0
3 years ago
Read 2 more answers
Which device on a network performs network address translation?
Alika [10]
Network Address Translation<span> (NAT) is the answer</span>
4 0
4 years ago
BIm computer class I need answers please
egoroff_w [7]

Answer:

I think the 3RD

Explanation:

The  reason why I think that is because the other once are not written correctly.

8 0
3 years ago
Read 2 more answers
What was the first portable computer called and who made it?
jekas [21]
It was the Osborne 1 made by Adam Osborne in 1981.
6 0
3 years ago
Other questions:
  • Today, air travel allows large numbers of people to move quickly over long distances. Which of the following is a likely effect
    8·1 answer
  • Typically, a dvd has how many times more capacity than a cd?
    5·1 answer
  • A computer program that senses when another computer is attempting to scan or access a computer or network is called an
    7·1 answer
  • A chef writing up her famed recipe for beef stew realizes she has switched parsley and oregano everywhere in the recipe. The che
    13·1 answer
  • Why are application programs stored in main memory​
    11·1 answer
  • Write a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s: Diameter (2
    7·1 answer
  • What is the name of the process that weighs the alternatives, gathers all necessary information, and can ultimately lead you to
    9·2 answers
  • Tim has several workbooks open in the Excel application. He would like to view them all at the same time, so he should use the _
    14·1 answer
  • Brianna is taking a backpacking trip in the wilderness and wants to back up the photos from her camera. Which type of storage de
    10·1 answer
  • You've just finished installing a wireless access point for a client. What should you do to prevent unauthorized users from usin
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!