Differences Between Structures and Arrays?




ARRAY


STRUCTURE
A)
An array is a collection of related data elements Of same type.

A)
Structure can have element s of
Different type.
B)
An array is derived data
B)
A structure is a programmer defined
one
C)
Any array behaves like a built in data type. All we have to do is to declare  an array  variable and
use it.
C)
But in the case of a structure, Ist we
 have to design and declare a
data structure. Before the variables
of that type  are declared and used.


Related

Write about Arrays of Structures?

We use structures to describe the format of a number of related variables. For ex: in analyzing the marks obtained by a class of students, we may use a template to describe student name and marks o...

Write about Call by Value and Call by Reference (or) Parameter Passing Techniques?

The techniques used to pass data from one function to another are known as parameter passing. “C” provides 2 mechanisms to pass arguments to a function. 1. Call by value (or) pass arguments by valu...

Write about Elements of User Defined Function?

In order to make use of  user defined function we need to establish 3 elements that are related to functions. 1. function definition 2. function call 3. function declaration; The function d...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item