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 are the back slash character constants or escape sequence charactersavailable in c?
What is the difference between test design and test case design?
Explain how can I remove the trailing spaces from a string?
code for replace tabs with equivalent number of blanks
How can a program be made to print the line number where an error occurs?
How is null defined in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is fflush() function?
What Is The Difference Between Null And Void Pointer?
What does c mean before a date?
Is there sort function in c?
How can I get the current date or time of day in a c program?
Can true be a variable name in c?
What is the explanation for modular programming?
Why c is called procedure oriented language?