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

How is a macro different from a function?

0 Answers   Tech Mahindra,


How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets

2 Answers   Hexaware,


Method Overloading exist in c ?

3 Answers   Wipro,


Can we declare variable anywhere in c?

0 Answers  


Can you return null in c?

0 Answers  






write the program to find multiplication of 2-D matrix??????????

1 Answers  


Write a function that will take in a phone number and output all possible alphabetical combinations

0 Answers   Motorola,


can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


to find out the reverse digit of a given number

6 Answers   Infosys, Microsoft, TCS, Wipro,


int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?

15 Answers   Mascot,


What is wrong in this statement?

0 Answers  


What will be the output of x++ + ++x?

20 Answers   MBT, Religare,


Categories