what is difference between array and structure?
Answer Posted / 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 |
Post New Answer View All Answers
How can I dynamically allocate arrays?
What is calloc() function?
praagnovation
When was c language developed?
Explain what is output redirection?
What is the size of structure pointer in c?
Explain how do you print only part of a string?
With the help of using classes, write a program to add two numbers.
c program to compute AREA under integral
What are the different types of linkage exist in c?
What is the best way to store flag values in a program?
What are the advantages of using new operator as compared to the function malloc ()?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Write a code to generate a series where the next element is the sum of last k terms.
What is the purpose of main( ) in c language?