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 are integer variable, floating-point variable and character variable?
Can a pointer be static?
What is data types?
Why does the call char scanf work?
Which are low level languages?
how we can make 3d venturing graphics on outer interface
What are pointers? What are different types of pointers?
difference between native and cross compilers
What is the best style for code layout in c?
Can include files be nested?
When is the “void” keyword used in a function?
What is the difference between the local variable and global variable in c?
Can we declare variable anywhere in c?
what are the facialities provided by you after the selection of the student.
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)