What is the difference b/w Structure & Array?
Answers were Sorted based on User's Feedback
Answer / prashant tiwari
array is the set of same type of variable & structure are
use 4 different type of variable
| Is This Answer Correct ? | 15 Yes | 3 No |
Answer / sarayu
1_array is the collection of similar data items but
structure is the collection of dissimilar data items.
2.structure members are accesed only by structure
variables.on the hand of array that is no need.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / namita
1-array is the collection of variables of same kind of data
types where as structure is a colection of variables of
different type os data types.
2-Array use index or subscript to access its members where
as structure uses "." operator.
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / ashu_deepu
structure can hold different types of data as well as
functions.each member are referenced by .(dot) operator.
but array hold similar type of data type.we just use index
to accesss each element of the array.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / basri zuber a
array is collection of similer datatype.structure is
collection of diffrent diffrent data type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / khaja
array is used for same or similar datatypes
and
structure is used for different data types
| Is This Answer Correct ? | 0 Yes | 0 No |
how can be easily placed in TCS.
String concatenation
find the sum of two matrices and WAP for it.
What do you mean by invalid pointer arithmetic?
who will call your main function in c under linux?
How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?
Is boolean a datatype in c?
What is sorting in c plus plus?
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?
what are non standard function in c
Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }
Explain the difference between #include "..." And #include <...> In c?