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 null in c?
Explain how can type-insensitive macros be created?
What are valid operations on pointers?
What are the different properties of variable number of arguments?
What is the difference between constant pointer and constant variable?
Why is structure padding done in c?
What is the difference between the local variable and global variable in c?
Why doesnt the call scanf work?
Write a program to print fibonacci series using recursion?
What is logical error?
Should I learn data structures in c or python?
What are header files in c programming?
What does 2n 4c mean?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Write a Program to find whether the given number or string is palindrome.