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

What are data types in c language?

815


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

982


What is the difference between printf and scanf )?

819


What is the heap in c?

860


what is uses of .net

1489


Apart from dennis ritchie who the other person who contributed in design of c language.

1109


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3954


What does a pointer variable always consist of?

886


What is return in c programming?

729


Tell us the use of fflush() function in c language?

906


Which node is more powerful and can handle local information processing or graphics processing?

1097


What is the use of printf() and scanf() functions?

848


Can the sizeof operator be used to tell the size of an array passed to a function?

868


Explain continue keyword in c

796


what is the structure pointer?

1873