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

How can I run c program?

0 Answers  


Who is the main contributor in designing the c language after dennis ritchie?

0 Answers  


Explain how do you determine the length of a string value that was stored in a variable?

0 Answers  


Why double pointer is used in c?

0 Answers  


Can we add pointers together?

0 Answers  






How the processor registers can be used in C ?

7 Answers   HP,


How can I access a memory located at certain address?

2 Answers   CSC,


Can a pointer be null?

0 Answers  


What is the process to generate random numbers in c programming language?

0 Answers  


What is far pointer in c?

0 Answers  


wite a programme in c to linear search a data using flag and without using flags?

3 Answers   TCS,


void main() { int *ptr; ptr = (int *) 0x400 ; printf("ptr=%d",ptr); } output?

1 Answers  


Categories