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
What is the difference between ‘g’ and “g” in C?
What are the difference between a free-standing and a hosted environment?
code for quick sort?
how should functions be apportioned among source files?
Why can’t we compare structures?
What is else if ladder?
What is the importance of c in your views?
What is the size of array float a(10)?
What is the use of ?
What's the total generic pointer type?
What is a program flowchart and explain how does it help in writing a program?
What is scope rule of function in c?
How can I prevent another program from modifying part of a file that I am modifying?
What are the types of variables in c?
Explain the difference between structs and unions in c?