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 can I read data from data files with particular formats?

0 Answers  


How can a number be converted to a string?

1 Answers  


24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?

2 Answers  


Explain what is a const pointer?

0 Answers  


What is meant by type casting?

0 Answers  


How can I read a directory in a c program?

1 Answers   CSC,


in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

2 Answers   NetApp,


What does %p mean c?

0 Answers  


1)what is the error in the following stmt where str is a char array and the stmt is supposed to traverse through the whole character string str? for(i=0;str[i];i++) a)There is no error. b)There shud be no ; after the stmt. c)The cond shud be str[i]!='\0' d)The cond shud be str[i]!=NULL e)i shud be initialized to 1

4 Answers  


what is the hardware model of CFG( context free grammar)

0 Answers   Microsoft,


Describe the steps to insert data into a singly linked list.

0 Answers  


Is Exception handling possible in c language?

0 Answers   Wipro,


Categories