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 portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Do you know the purpose of 'register' keyword?
What is difference between scanf and gets?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Why doesnt that code work?
Is null always defined as 0(zero)?
What is a constant?
Is sizeof a keyword in c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is gets() function?
Explain how can I remove the trailing spaces from a string?
Why header file is used in c?
Write a Program to accept different goods with the number, price and date of purchase and display them
Explain what are linked list?
What is NULL pointer?