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
Which formulas would work to combine cells with first, middle, and last names from columns A through C and row 2 into a new cell
AURORKA [14]

Split? not really sure but i understand a bit of this..

6 0
3 years ago
Read 2 more answers
Which command will display each line in the text file based on the alphabet?
SSSSS [86.1K]
On windows, it is the type command.
On linux, the cat command outputs the file.
All bytes that represent printable characters will be displayed as ASCII or even Unicode.
6 0
3 years ago
4.8 Code Practice: Question 1
Furkat [3]

Answer:

c = 1 # global variable

    jhjl jh

def add(): c = 1 # global variable

def add():

   print(c)

add()

   c = c + 2 # increment c by 2

   print(c)

add()

Explanation:

4 0
3 years ago
Read 2 more answers
A _____________ is designed for a individual user.
pishuonlain [190]

Answer:

i don't know it sorry

Explanation:

7 0
3 years ago
What function affects the cookies downloaded into the host when playing a video clip?
sukhopar [10]

Answer:

Privacy

Explanation:

7 0
3 years ago
Other questions:
  • Suppose company A wants to develop a program that duplicates the functionality of a programm by company B. Describe how company
    8·1 answer
  • Tasks:_______.
    7·1 answer
  • Are storage devices input devices
    8·1 answer
  • When you are almost done with your soup and want to get at the last little bit, how should you do this 2
    5·1 answer
  • Explain the developments RAM since it was created in 1968 til today.
    7·1 answer
  • The average number of entities completed per unit time -- the output rate -- from a process is called ____.
    9·1 answer
  • Graphics created within Illustrator CC are always vector graphics true or false
    9·1 answer
  • What is 3x10? PLZZZZZ
    11·1 answer
  • WHAT ARE SOME PROS AND CONS OF HYDROGEN FUELL CELLS
    11·1 answer
  • Elan inserted shapes into a slide in his presentation. What is the quickest way to format those shapes?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!