what is the use of a array in c
Answers were Sorted based on User's Feedback
An array is a collection of similar elements(data types).
These similar elements could be all ints, or all floats, or
all chars, etc.
In an array all elements must e of same types.
In simple language, Arrays are used to give 'one' variable
the power to hold 'more than 1' values.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sameer
to have a collection of similar dta types in one varible
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saravanan j (srm universi
array concept is used to locate the memory allocation for
the variables
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / abeera amin
array are data structure in which identical data type are
stored.and have contiguous area of memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shruti
Array is a collection of homogeneous data-types..
| Is This Answer Correct ? | 0 Yes | 1 No |
Is printf a keyword?
Are c and c++ the same?
Predict the output or error(s) for the following: 25. main() { printf("%p",main); }
how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help
How can you read a directory in a C program?
i need all types of question paper releted to "c" and other language.
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
What is a structure member in c?
write a program to find out number of on bits in a number?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
What is typedef?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)