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


Please Help Members By Posting Answers For Below Questions

What is use of pointer?

587


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

806


How can I manipulate strings of multibyte characters?

638


What is a void pointer in c?

606


How can I remove the leading spaces from a string?

632






Are pointers really faster than arrays?

562


What does struct node * mean?

599


What is the purpose of realloc()?

669


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2269


List some basic data types in c?

559


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2334


What does d mean?

583


Why is c fast?

603


Explain continue keyword in c

586


How can I make it pause before closing the program output window?

581