What is the difference b/w Structure & Array?

Answers were Sorted based on User's Feedback



What is the difference b/w Structure & Array?..

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

What is the difference b/w Structure & Array?..

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

What is the difference b/w Structure & Array?..

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

What is the difference b/w Structure & Array?..

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

What is the difference b/w Structure & Array?..

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

What is the difference b/w Structure & Array?..

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

Post New Answer

More C Interview Questions

Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

0 Answers  


what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

7 Answers   Cadence, JNTU, Zen Technologies,


List a few unconditional control statement in c.

0 Answers  


List the different types of c tokens?

0 Answers  


What is nested structure with example?

0 Answers  






what type of language is C?

13 Answers   Microsoft,


Why flag is used in c?

0 Answers  


YBJBU6

1 Answers  


how to find out the union of two character arrays?

2 Answers  


what is the output of the following program? #include<stdio.h> void main() { float x=1.1; while(x==1.1) { printf("\n%f",x); x=x-0.1; } }

6 Answers  


Write a code on reverse string and its complexity.

0 Answers   Expedia,


write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4

9 Answers   IBM, NIIT, Winit,


Categories