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 / manish

array is a similar type of data but structure are collection of any type of data
array alway start with 0
e.g.a[5]
in this array 6 element
structure has no diffination
it is a collection of n num any data type

Is This Answer Correct ?    6 Yes 2 No

what is difference between array and structure? ..

Answer / abinaya

array:arrray is a collection of similar datatypes stored in
common name.it is a scpe of variable

structure:structure is a dissimilar datatypes stord in
common name.it is a scope of datatype

Is This Answer Correct ?    4 Yes 0 No

what is difference between array and structure? ..

Answer / triveni

ARRAY:- array includes same type of data types.
we dont use any keyword while defining array.
array always passed/called by reference to function.
we cant copy one array to another even though both arrays
ae of same type.
it is fixed in size.

structure:-array includes same or differnt data type
elements .
we use struct keyword while definings structure.
by default structure passed/called by value to function.
we cant copy one structure to another if both are of same
struct type and having different variabe names.
it is not fixed in size.

Is This Answer Correct ?    3 Yes 0 No

what is difference between array and structure? ..

Answer / ajeet

Array is the collection of homogeneous data elements
whereas Structure is the collection of heterogeneous
data types elements.

Is This Answer Correct ?    3 Yes 0 No

what is difference between array and structure? ..

Answer / karam ali

structure is the collection of the different or may be same data type,,,,but the array is the collection of the same data type,

Is This Answer Correct ?    2 Yes 0 No

what is difference between array and structure? ..

Answer / bavithra

Array:Derived datatype
Structure:User defined datatype

Is This Answer Correct ?    2 Yes 0 No

what is difference between array and structure? ..

Answer / priya

Array have same data type and static memory allocation....
Structure have different data type and dynamic memory
allocation

Is This Answer Correct ?    2 Yes 0 No

what is difference between array and structure? ..

Answer / bilal wazir

arrays are the group of related data types but structure are
the different data items

Is This Answer Correct ?    2 Yes 0 No

what is difference between array and structure? ..

Answer / sreejith av

ARRAY:
An array is defined as a group of related data items stored by means of a single variable name.

STRUCTURE:
Structure is defined as a data type to represent several different types of data with a single name.

DIFFERENCE BETWEEN ARRAYS AND STRUCTURES:
1.All data in a array should be of same data type.But in structures data can be of different data types.
2.Individual entries in an array are called elements.But in structure individual entries are called members.

Is This Answer Correct ?    2 Yes 0 No

what is difference between array and structure? ..

Answer / rkv charan

Array:
1.static memory allocation.
2.array size is fixed.
3.array can't have bit fields.

structure:
1.Dynamic memory allocation.
2.structure size is changed dynamically.
3.structure can contain bit fields.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

int x=5; printf("%d%d%d",x,x<<2,x>>2);

2 Answers   TANCET,


main() { int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ; int i, j , k=99 ; for(i=0;i<3;i++) for(j=0;j<4;j++) if(a[i][j] < k) k = a[i][j]; printf("%d", k); }

4 Answers   Vector, Wipro, Zoho,


What is this infamous null pointer, anyway?

0 Answers  


Explain how can you determine the size of an allocated portion of memory?

0 Answers  


Explain logical errors? Compare with syntax errors.

0 Answers  


int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(ā€œ%dā€,*(*(x+1)+3));

2 Answers   Wipro,


Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 Answers  


how to find string length wihtout using c function?

6 Answers  


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

0 Answers   Wilco,


write a program in c to find out the sum of digits of a number.but here is a condition that compiler sums the value from left to right....not right to left..

1 Answers  


What is the difference between int and float?

3 Answers  


What is pragma in c?

0 Answers  


Categories