what is array?

Answers were Sorted based on User's Feedback



what is array?..

Answer / geetha gajendiran

array is a collection of similar data types;
i can explain with following example:
#include<stdio.h>
void main()
{
int x;
x=5;
x=10;
printf("\nx=%d",x);
}
here 10 is assigned to x.thereby 5 get lost.this is
applicable when only one value is stored.

but,if we want to store more than one value at a time in a
single variable.we go for using the array

suppose we want to arrange the payment of 100 workers in
ascending order.we have 2 options
1)construct 100 vari8ables to store the payment amount
obtained by 100 different workers.
2)construct one(1) variable (called array or subscripted
variable) capable of storing or holding all the hundred
values.


for more question and answers regarding computer
engineering please mail to me.

Is This Answer Correct ?    20 Yes 4 No

what is array?..

Answer / manishsharama

array is the collection of similar data type.

Is This Answer Correct ?    17 Yes 6 No

what is array?..

Answer / sonu

Array is a collection of smiler data type.

Is This Answer Correct ?    9 Yes 4 No

what is array?..

Answer / dharmendra jadeja

Array is a Collection of Elements of same datatypes.

Is This Answer Correct ?    5 Yes 0 No

what is array?..

Answer / niranjan

array is collection of similar types data which always
starts from o

Is This Answer Correct ?    9 Yes 5 No

what is array?..

Answer / nitesh pawar

Array means in short Array is group of variable which
having same name same data types but having differnt values

Is This Answer Correct ?    6 Yes 2 No

what is array?..

Answer / amit chauhan

Array is a collection of smiler data type.
address location of array starts from 0. OR

"It is a set of elements which stored under a single name". n

OR

"An array is a collection of homogenous data elements which
are stored in consecutive memory locations.

Is This Answer Correct ?    6 Yes 3 No

what is array?..

Answer / nikita

array is continous memory allocation for some data types.
<data ytpe> array name .[no of element].

Is This Answer Correct ?    4 Yes 1 No

what is array?..

Answer / ashish singh

array is the similer data type elements.

Is This Answer Correct ?    9 Yes 7 No

what is array?..

Answer / gopi

An Array is a group of elements in a different datatype

Is This Answer Correct ?    11 Yes 9 No

Post New Answer

More C Interview Questions

wat is the output #define VOLEDEMORT _who_must_not_be_named int main() { printf("VOLEDEMORT"); }

2 Answers  


What is output redirection?

0 Answers  


Go through this linked list concept.While traversing through the singly linked list sometimes the following code snippet "while(head != NULL)" is used and other times "while(head->link != NULL)"is used(Here head is the pointer pointing to the first node,node has two parts data part and link part).What is the difference between head != NULL and Head->link != NULL and in which situation are they used?

1 Answers   Oracle,


read a number & print all its devisors using c-program?

3 Answers  


Difference between for loop and while loop?

1 Answers  






When the macros gets expanded?

0 Answers  


What type of function is main ()?

0 Answers  


#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this?

4 Answers   IIIT,


main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?

1 Answers   GATE,


main() { printf("hello"); fork(); }

0 Answers   Wilco,


Do you know the use of fflush() function?

0 Answers  


What are header files and explain what are its uses in c programming?

0 Answers  


Categories