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
What is dynamic dispatch in c++?
Distinguish between actual and formal arguments.
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Describe the difference between = and == symbols in c programming?
What are enums in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is the purpose of sprintf() function?
What is string length in c?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
how to find anagram without using string functions using only loops in c programming
Is c weakly typed?
What are enumerated types?
What's the best way of making my program efficient?
What is the meaning of && in c?
Can you explain the four storage classes in C?