what is difference between array and structure?
Answer Posted / ira
Are you sure that Structure is object oriented, because
structs came from C, and C wasn't an object-oriented
program, and C++ was using it at the beginning where now
they use class for the same function which is better
Array is a collection of a fixed number of components all of
the same type: it is a homogeneous data structure.
structs (records) - we use them to group items of different
types; a collection of a fixed number of components in which
the components are accessed by name. The components as
mention can be of different types. A struct is typically
heterogeneous.
| Is This Answer Correct ? | 82 Yes | 20 No |
Post New Answer View All Answers
Explain the properties of union.
How does pointer work in c?
why wipro wase
What is abstract data structure in c?
Explain about the constants which help in debugging?
Why main is not a keyword in c?
How can you check to see whether a symbol is defined?
C language questions for civil engineering
Explain indirection?
Can we access the array using a pointer in c language?
What is %d used for?
while initialization of array why we use a[][2] why not a[2][]...?
Where are the auto variables stored?
Whats s or c mean?
If null and 0 are equivalent as null pointer constants, which should I use?