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
Why flag is used in c?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
what is the difference between class and unio?
When should the register modifier be used? Does it really help?
What math functions are available for integers? For floating point?
What is the difference between void main and main in c?
What is a pointer and how it is initialized?
Why is c called a mid-level programming language?
What is sizeof c?
Is anything faster than c?
How can you access memory located at a certain address?
What are the properties of union in c?
What are called c variables?
Explain how are 16- and 32-bit numbers stored?