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


Please Help Members By Posting Answers For Below Questions

What is null in c?

598


Explain how can type-insensitive macros be created?

570


What are valid operations on pointers?

668


What are the different properties of variable number of arguments?

665


What is the difference between constant pointer and constant variable?

748






Why is structure padding done in c?

643


What is the difference between the local variable and global variable in c?

529


Why doesnt the call scanf work?

671


Write a program to print fibonacci series using recursion?

585


What is logical error?

605


Should I learn data structures in c or python?

581


What are header files in c programming?

655


What does 2n 4c mean?

717


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

668


Write a Program to find whether the given number or string is palindrome.

613