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 malloc() and calloc()?
Without Computer networks, Computers will be half the use. Comment.
What is assert and when would I use it?
write an algorithm to display a square matrix.
What functions are used for dynamic memory allocation in c language?
Here is a neat trick for checking whether two strings are equal
Which type of language is c?
Why is c known as a mother language?
What is main () in c?
Explain Basic concepts of C language?
What is the use of a static variable in c?
Why is c called a structured programming language?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is the use of bit field?
Are pointers integers in c?