Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is difference between array and structure?

Answers were Sorted based on User's Feedback



what is difference between array and structure? ..

Answer / kirankumar

Array takes data types of same kind where as structure takes
any kind.
Ex:int n[5];/* one d array
int n[10][10];/* two d array
int n[10][10][10];/* multi d array or jagged array
Structure takes following form:
struct class
{
cahr name;
int marks;
float sbuject[3];
}stuent[100];

Is This Answer Correct ?    1 Yes 1 No

what is difference between array and structure? ..

Answer / tsering dolma

array is collection of same data.
structure is collection of hetogenous data

Is This Answer Correct ?    0 Yes 0 No

what is difference between array and structure? ..

Answer / tsering dolma

1. Array is collection of homogenous data and
structure is collection of hetogenous data

Is This Answer Correct ?    0 Yes 0 No

what is difference between array and structure? ..

Answer / shiva

arry is derived data type,
structure is user defined data type

Is This Answer Correct ?    0 Yes 0 No

what is difference between array and structure? ..

Answer / adilakshmi

Array elements are homogeneous type.
Structure elements are different data type.
Array is the pointer to the first element.
Structure is not a pointer.

Is This Answer Correct ?    0 Yes 0 No

what is difference between array and structure? ..

Answer / chaudhary paresh

- Array elements are homogeneous. Structure elements are of
different data type.
- Array allocates static memory and uses index / subscript
for accessing elements of the array. Structures allocate
dynamic memory and uses (.) operator for accessing the
member of a structure.
- Array is a pointer to the first element of it. Structure
is not a pointer
- Array element access takes less time in comparison with
structures.

Is This Answer Correct ?    0 Yes 0 No

what is difference between array and structure? ..

Answer / viji

array is the collection of same data items are declare under
common name

structure is the collection of different data items are
declare under different name which are accessed under common
name.

Is This Answer Correct ?    0 Yes 0 No

what is difference between array and structure? ..

Answer / monishasyed

Array is same data type
it can not bit field
it has the base pointer
structure is the different data type
it can bit field
it has the poiter

Is This Answer Correct ?    0 Yes 0 No

what is difference between array and structure? ..

Answer / dhivya

when we are declaring an array a variable is enough with
the size.
when we are declaring structure it contain different data
types.

Is This Answer Correct ?    16 Yes 18 No

what is difference between array and structure? ..

Answer / kirankumar

Array is used to represent a group of data items that
belongs to the same type or kind.
int a[5];
i.e a[0],a[1],a[2],a[3],a[4].
all a values are integer types.


If we want to represent data items of different types using
a single name is called strucute.
Ex:struct book
{
char title[20];
int pages;
float price;
};

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

What is pointer in c?

0 Answers  


Describe the steps to insert data into a singly linked list.

0 Answers  


How do I use strcmp?

0 Answers  


What are the advantages and disadvantages of pointers?

0 Answers  


please send me papers for Dy. manager IT , PNB. it would be a great help for me.

0 Answers  


What are the types of data types and explain?

0 Answers  


Three major criteria of scheduling.

1 Answers  


How is actual parameter different from the formal parameter?

0 Answers  


Convert the following expression to postfix and prefix (A+B) * (D-C)

3 Answers   Satyam,


what is the hardware model of CFG( context free grammar)

0 Answers   Microsoft,


Is null equal to 0 in sql?

0 Answers  


Apart from dennis ritchie who the other person who contributed in design of c language.

0 Answers  


Categories