what is difference between array and structure?
Answers were Sorted based on User's Feedback
Answer / guest
array is a collection of similar data types.a structure is
a collection of different data types
| Is This Answer Correct ? | 27 Yes | 1 No |
Answer / aaa
structure uses keyword struct while declaring,
whereas array doest use any keyword for declaration.
| Is This Answer Correct ? | 25 Yes | 5 No |
Answer / chinmayee
array is a homogenous data types.
structure is a user defined data types...
| Is This Answer Correct ? | 26 Yes | 9 No |
Answer / sruthi
structure is user defined!
c program for printing employee details using union ??
| Is This Answer Correct ? | 48 Yes | 34 No |
Answer / priya
Array is used to store large set of data with same data
type.But structure allows you to wrap one or more variables
with different data type.
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / preet batth
array
1.there is no keyword
2.it has decleration only
structure
1.the keywod struct is used
2.it as decelration and definition
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / uttam kumar das
array= array is collection of similar data items
structure= structure is a collection of dissimilar data
items
| Is This Answer Correct ? | 18 Yes | 9 No |
Answer / 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 |
Answer / kunal
array is scope of variable
structure is a scope of data type
| Is This Answer Correct ? | 12 Yes | 6 No |
Answer / srinidhi
array means homogenious it can hold only its or char ,float
stucture means heterogenious it can contain 1 int,i floatso
it is contains mixed data
| Is This Answer Correct ? | 6 Yes | 0 No |
how to set Nth bit of a variable?
Explain the advantages of using macro in c language?
how can i print "hello"
the number 138 is called well ordered number because the three digits in the number (1,3,8) increase from left to right (1<3<8). the number 365 is not well ordered coz 6 is larger than 5. write a program that wull find and display all possible three digit well ordered numbers. sample: 123,124,125,126,127,128,129,134 ,135,136,137,138,139,145,146,147 148 149,156.......789
Do you know pointer in c?
Why clrscr is used after variable declaration?
what are advantages of U D F?
Is it cc or c in a letter?
What do you mean by team??
write a function that accepts an integer/char array and an search item.If the search item is there in the array return position of array and value else return -1.without using other array,without sorting,not to use more than one loop?
Why is c so powerful?
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;