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 c language & why it is used?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Write a program in c to replace any vowel in a string with z?
What is build process in c?
What does it mean when a pointer is used in an if statement?
Is null a keyword in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is volatile keyword in c?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Explain what is page thrashing?
What does the c in ctime mean?
What are structures and unions? State differencves between them.
Should I learn c before c++?
Why clrscr is used in c?
Why do we use pointer to pointer in c?