what is an array

Answers were Sorted based on User's Feedback



what is an array..

Answer / srsabariselvan

an array is a collection of same type of data.
for eg:
list of student name,collection of roll numbers.
each element has unique id(index).
Declaration:
data_type a[size];
a[index]=number;
Eg:
int a[10];
a[0]=2;
a[1]=3;
.
.
.
a[9]=22;
printf("%d",a[9]);

Is This Answer Correct ?    2 Yes 0 No

what is an array..

Answer / anusha

an array is a continous memory of same data type.

Is This Answer Correct ?    2 Yes 0 No

what is an array..

Answer / j j ramesh

it is the ordered collection of same type of variable.
accessed by index value range starts from 0

Is This Answer Correct ?    1 Yes 0 No

what is an array..

Answer / mukul garg

an array is a collectiom of similar data types .an array
index always stsrt from zero if the size of array is n then
it can store n elements .
int a[5]={1,2,3,4,5};

Is This Answer Correct ?    1 Yes 1 No

what is an array..

Answer / jyoti

An Array is a Drived data type

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain Linker and Loader

5 Answers  


Differentiate call by value and call by reference?

0 Answers   Cyient,


here is a link to download Let_Us_C_-_Yashwant_Kanetkar

3 Answers   Microsoft,


What is the difference between printf and scanf in c?

0 Answers  


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

0 Answers   Bosch,






Write a simple code fragment that will check if a number is positive or negative.

0 Answers  


4)What would be the output? main() { int num=425; pf("%d",pf("%d",num)); } a)Comp error b)4425 c)4253 d)3435 e)none

10 Answers  


How can I find the modification date of a file?

0 Answers   Celstream,


What is the proper way of these job Tell me about there full work

0 Answers   EDS,


What is the advantage of a random access file?

0 Answers  


Who is the founder of c language?

0 Answers  


what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 Answers  


Categories