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

List some basic data types in c?

549


What is the use of a ‘’ character?

577


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

579


How do we open a binary file in Read/Write mode in C?

666


What is typedef struct in c?

574






Define C in your own Language.

627


Explain how can you be sure that a program follows the ansi c standard?

852


Explain how do you use a pointer to a function?

629


Write a program to print factorial of given number without using recursion?

563


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1505


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

635


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1517


What is a buffer in c?

565


What is identifiers in c with examples?

665


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1893