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
Explain the bubble sort algorithm.
What is || operator and how does it function in a program?
What are the basic data types associated with c?
If errno contains a nonzero number, is there an error?
Can we change the value of #define in c?
using only #include
What is calloc() function?
Is multithreading possible in c?
How to throw some light on the b tree?
Can 'this' pointer by used in the constructor?
What is the difference between single charater constant and string constant?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Why c language is called c?
what is stack , heap ,code segment,and data segment
Explain what standard functions are available to manipulate strings?