what is array?
Answers were Sorted based on User's Feedback
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 |
Answer / manishsharama
array is the collection of similar data type.
| Is This Answer Correct ? | 17 Yes | 6 No |
Answer / dharmendra jadeja
Array is a Collection of Elements of same datatypes.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / niranjan
array is collection of similar types data which always
starts from o
| Is This Answer Correct ? | 9 Yes | 5 No |
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 |
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 |
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 |
Answer / gopi
An Array is a group of elements in a different datatype
| Is This Answer Correct ? | 11 Yes | 9 No |
if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.
18 Answers Parexel, Ram Infotech, Zycus Infotech,
Differentiate between new and malloc(), delete and free() ?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
1 Answers 91mobiles, Amazon, App Guruz, College School Exams Tests, Folio3, Infosys, Omega, Planin, Riphah International University, Subex,
the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38
What is a class c rental property?
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
Explain what are header files and explain what are its uses in c programming?
Where is c used?
What is the difference between struct and typedef struct in c?
ABCDCBA ABC CBA AB BA A A
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
main() { int i=5; printf("%d%d%d%d",i++,i--,i); }