what is difference between array and structure?

Answers were Sorted based on User's Feedback



what is difference between array and structure? ..

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

what is difference between array and structure? ..

Answer / aaa

structure uses keyword struct while declaring,
whereas array doest use any keyword for declaration.

Is This Answer Correct ?    25 Yes 5 No

what is difference between array and structure? ..

Answer / chinmayee

array is a homogenous data types.
structure is a user defined data types...

Is This Answer Correct ?    26 Yes 9 No

what is difference between array and structure? ..

Answer / sruthi

structure is user defined!


c program for printing employee details using union ??

Is This Answer Correct ?    48 Yes 34 No

what is difference between array and structure? ..

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

what is difference between array and structure? ..

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

what is difference between array and structure? ..

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

what is difference between array and structure? ..

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

what is difference between array and structure? ..

Answer / kunal

array is scope of variable
structure is a scope of data type

Is This Answer Correct ?    12 Yes 6 No

what is difference between array and structure? ..

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

Post New Answer

More C Interview Questions

void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


Why does the call char scanf work?

0 Answers  


Write a program to reverse a string.

0 Answers   Global Logic, iNautix, TCS, Wipro,


How to write a multi-statement macro?

0 Answers  


value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?

6 Answers   Google,






What is substring in c?

0 Answers  


Why we use void main in c?

0 Answers  


A program to write a number of letters and numbers, such as counting and display

0 Answers  


what is the significance of static storage class specifier?

0 Answers  


errors in computer programmes are called

1 Answers   NET,


Write the test cases for checking a variable having value in range -10.0 to +10.0?

0 Answers   Bosch,


What is a global variable in c?

0 Answers  


Categories