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

Can we assign integer value to char in c?

617


Explain how do you view the path?

657


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

654


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2008


What are the two forms of #include directive?

645






What are the advantages of using macro in c language?

595


What is the g value paradox?

646


Are bit fields portable?

680


What are the main characteristics of c language describe the structure of ac program?

614


Explain how do you determine a file’s attributes?

594


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

734


What is function prototype?

611


What functions are used for dynamic memory allocation in c language?

602


How do I swap bytes?

633


Is it better to use a macro or a function?

658