what is difference between array and structure?

Answer Posted / rajkumars

Array:Static memory allocation.
It uses the subscript to access the array elements.

Structure:Dynamic memory allocation.
It uses the dot(.)operator to access the structure
members.

Is This Answer Correct ?    460 Yes 48 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which header file is the null macro defined?

1112


What is the difference between class and object in c?

820


Implement bit Array in C.

883


Hi can anyone tell what is a start up code?

1828


What is scope of variable in c?

773


Why double pointer is used in c?

783


How is actual parameter different from the formal parameter?

793


Explain how do you determine the length of a string value that was stored in a variable?

914


What is c basic?

888


How does #define work?

842


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

940


Is sizeof a keyword in c?

761


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1096


What is optimization in c?

743


show how link list can be used to repersent the following polynomial i) 5x+2

1901