what is difference between array and structure?
Answer Posted / sreejith av
ARRAY:
An array is defined as a group of related data items stored by means of a single variable name.
STRUCTURE:
Structure is defined as a data type to represent several different types of data with a single name.
DIFFERENCE BETWEEN ARRAYS AND STRUCTURES:
1.All data in a array should be of same data type.But in structures data can be of different data types.
2.Individual entries in an array are called elements.But in structure individual entries are called members.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What are the differences between Structures and Arrays?
What is operator precedence?
Explain the use of fflush() function?
Explain what is the advantage of a random access file?
What's the total generic pointer type?
What is scope and lifetime of a variable in c?
What is floating point constants?
When was c language developed?
What is the advantage of an array over individual variables?
What does sizeof int return?
why wipro wase
How to compare array with pointer in c?
What is scanf () in c?
What is multidimensional arrays