what is difference between array and structure?

Answer Posted / rajkumars

Array:Static memory allocation.
It uses the subscript to access the array elements.

Structure:Dynamic memory allocation.
It uses the dot(.)operator to access the structure
members.

Is This Answer Correct ?    460 Yes 48 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are non standard function in c

1420


Can you please explain the scope of static variables?

590


What is the difference between int main and void main in c?

581


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1873


Differentiate between the expression “++a” and “a++”?

687






What are c preprocessors?

662


How can you find the exact size of a data type in c?

587


What are the advantages of using linked list for tree construction?

633


What is %g in c?

605


Is r written in c?

716


How can you determine the size of an allocated portion of memory?

732


What is the purpose of realloc()?

656


Can we access the array using a pointer in c language?

551


Can we add pointers together?

604


What is the return type of sizeof?

579