what is difference between array and structure?

Answer Posted / sajid ali khan

ARRAYS: -
An array may contain a number of items all of the SAME TYPE,
including user-defined types such as structures (see above).
Structure: -
In the C programming language, a structure may contain
MULTIPLE DATA TYPES, also including arrays of those types,
and the structure becomes a USER-DEFINED type.

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why should I use standard library functions instead of writing my own?

663


What is the difference between union and structure in c?

562


differentiate built-in functions and user – defined functions.

609


Was 2000 a leap year?

616


What should malloc(0) do?

603






Explain Function Pointer?

675


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

1667


Why enum is used in c?

513


Differentiate between functions getch() and getche().

610


What is sizeof int in c?

592


Why use int main instead of void main?

581


Why is c so popular?

639


Sir i need notes for structure,functions,pointers in c language can you help me please

1937


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4482


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1107