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
List some basic data types in c?
What is the use of a ‘ ’ character?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
How do we open a binary file in Read/Write mode in C?
What is typedef struct in c?
Define C in your own Language.
Explain how can you be sure that a program follows the ansi c standard?
Explain how do you use a pointer to a function?
Write a program to print factorial of given number without using recursion?
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
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);
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.
What is a buffer in c?
What is identifiers in c with examples?
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 .