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 |
Write a program with dynamically allocation of variable.
identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;
How would you obtain the current time and difference between two times?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What are the different types of errors?
Convert the following expression to postfix and prefix (A+B) * (D-C)
How are structure passing and returning implemented?
What are data types in c language?
int i =10 main() { int i =20,n; for(n=0;n<=i;) { int i=10 i++; } printf("%d", i);
What is wrong with this program statement?
Why does not use getgh(); and <conio.h> in c language.
A program to write a number of letters and numbers, such as counting and display