what is difference between array and structure?
Answer Posted / rkv charan
Array:
1.static memory allocation.
2.array size is fixed.
3.array can't have bit fields.
structure:
1.Dynamic memory allocation.
2.structure size is changed dynamically.
3.structure can contain bit fields.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are pointers? What are stacks and queues?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
How do I get a null pointer in my programs?
How can I call a function with an argument list built up at run time?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is the use of a static variable in c?
What does s c mean on snapchat?
write a program to create a sparse matrix using dynamic memory allocation.
Explain what is the difference between #include and #include 'file' ?
Can we assign integer value to char in c?
difference between object file and executable file
What is null in c?
In C, What is the #line used for?
Can the “if” function be used in comparing strings?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......