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

write a programme to convert temperature from farenheit to celcius?

4 Answers   IBM,


the maximum width of a c variable name can be a) 6 characters b) 8 characters c) 10 characters d) 20 characters

2 Answers  


main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }

4 Answers  


Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

1 Answers   TCS,


How to run c Program without using IDE of c. means if program made in notepad.then how to compile by command prompt.

1 Answers   HP, TCS,






What is the size of structure pointer in c?

0 Answers  


4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...

3 Answers  


Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********

4 Answers  


Write a function to find the area of a triangle whose length of three sides is given

2 Answers  


study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above

15 Answers   Accenture, TCS,


1,1,5,17,61,217,?,?.

3 Answers   Apple,


Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }

3 Answers   NDS,


Categories