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

Write a program to exchange two variaables without temp

9 Answers   Geometric Software,


write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,


What is the explanation for the dangling pointer in c?

0 Answers  


how to print 212 as Twohundreds twelve plz provide me ans soon

1 Answers  


What are the application of void data type in c?

0 Answers  


What is scope of variable in c?

0 Answers  


main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }

6 Answers  


What are valid operations on pointers?

0 Answers  


what is meant by c

9 Answers   INiTS,


What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;

12 Answers   TCS,


Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 Answers  


write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?

1 Answers  


Categories