what is an array
Answers were Sorted based on User's Feedback
Answer / hariharan,k
An Array is set of related data items that shares a common
name.
| Is This Answer Correct ? | 0 Yes | 0 No |
an array is a FIXED-SIZE sequenced collection of elements
of the same data type
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rameshwar nath show
array is nothing but an array(a set ) of constants of
similar data type .
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aboelella
-Arrays are containers holding same data type
-Represented in memory as a sequence of elements
-Accessed through index of based zero
-It eleminates the need of defining variables with the
length of the array
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / saranya
array is a collection of homogeneous data that shares a
common name and stored in a sequence of memory.
Syntax:
<data_type> <variable_name>[<dimension_size>];
ex:
int arr[5];
Where,
int is an integer datatype,
arr[5] is a variable name with size 5.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nashiinformaticssolutions
A collection of items kept at consecutive memory regions is frequently referred to as an array.
The items that are kept are all of the same kind.
It arranges data in a way that makes it simple to search for or sort similar values.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
A collection of items kept at consecutive memory regions is frequently referred to as an array.
The items that are kept are all of the same kind.
It arranges data in a way that makes it simple to search for or sort similar values.
| Is This Answer Correct ? | 0 Yes | 0 No |
A collection of items kept at consecutive memory regions is frequently referred to as an array.
The items that are kept are all of the same kind.
It arranges data in a way that makes it simple to search for or sort similar values.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is c the same as c++?
Which bit wise operator is suitable for turning off a particular bit in a number?
How can you quickly find the number of elements stored in a static array?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
Can non-public members of another instance of the class be retrieved by the method of the same class?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
What is binary object model?
What are the differences between new and malloc?
Tell me difference between constant pointer and pointer to a constant.
Explain "passing by value", "passing by pointer" and "passing by reference" ?
What is the difference between a class and a structure in C++?
Explain the use of virtual destructor?