What do you mean by an array ? explain with an example
Answers were Sorted based on User's Feedback
Answer / sai
array is collection of similar type of elements and stores
in continues memory location.
| Is This Answer Correct ? | 100 Yes | 12 No |
Array is a collection of elements of similar data type and
these elements are stored in continuous memory locations.
int a[5] in c
creates an array of size 5 in continuos memory locations
whose indices will be 0,1,2,3,4.
in java A array in Java is like a fixed number of slots,
each slot holds a item, and all of them the same type.
int[] A;//array declaration in java
A=new int[10]; // 10 is the number of items
// now A is declared, and have assigned a value (initialized).
| Is This Answer Correct ? | 67 Yes | 6 No |
Answer / sonerao
array is a collection of similar data type & allocate
memory in to continue
| Is This Answer Correct ? | 52 Yes | 7 No |
Answer / enamul
Answer
# 3 Array is a collection of elements of similar data
type and
these elements are stored in continuous memory locations.
int a[5] in c
| Is This Answer Correct ? | 18 Yes | 9 No |
Answer / ramyathillainathan
An array is a fixed size sequenced collection of elements of the same data type. An array is defined as group of related data that share on common name.
for example:
salary [10]
represent the salary of 10 th employee .
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / leena vishwakarma
Array is a group of data elements having same data types under a common variable name....
Syntax:- Data type variable name[size];
Exa:- int a[10]....
Breket me di gayi number array Ki size batata or computer utne hi elements ke liye space reserve karta h....
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / piyush
An array is a data structure usef to store collections of similar values under a given name.
| Is This Answer Correct ? | 0 Yes | 3 No |
There are 3 jars containing two types of round marbles. One jar contains only red marbles, one jar contains only blue marbles and the third jar contains a mix of both red and blue marbles. Although the jars are labeled “red”, “blue” and “mixed” – all the jars are mislabeled. How many marbles would you have to pull out, and out of which jars, to find out how to fix the labels correctly?
what is delimiter in sas ?
Difference between HTML and DHTML?
I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard
Write a program to swap the content of two variables without using a third variable.
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
what is the maximam caption size of lebel
if try is followed by finally block what happen to exception occured in try block
3 Answers Professional Access,
Data Structure: How many comparisons are necessary to find the largest and smallest of a set of n distinct elements?
What function would you use to extract characters from a given string?
can we use commit,rollback in triggers and how?
what is technical system, business system, logical system in sap pi7.0