what is difference between array and structure?
Answer Posted / triveni
ARRAY:- array includes same type of data types.
we dont use any keyword while defining array.
array always passed/called by reference to function.
we cant copy one array to another even though both arrays
ae of same type.
it is fixed in size.
structure:-array includes same or differnt data type
elements .
we use struct keyword while definings structure.
by default structure passed/called by value to function.
we cant copy one structure to another if both are of same
struct type and having different variabe names.
it is not fixed in size.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the auto keyword good for?
What is pointer in c?
Whats s or c mean?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
can anyone suggest some site name..where i can get some good data structure puzzles???
What are the advantages of external class?
In c language can we compile a program without main() function?
Why do some versions of toupper act strangely if given an upper-case letter?
What are the advantages of using new operator as compared to the function malloc ()?
What is pointer to pointer in c?
Explain what is page thrashing?
How do you initialize pointer variables?
Tell me with an example the self-referential structure?
Explain the use of fflush() function?
What does %c mean in c?