Computer Science, asked by ndnidhias, 1 year ago

How can declear an array ....?

Answers

Answered by maryjessicka
0
int a[10]; c-language
int a[10]; c++-language
int[] a = new int[10]; java-language

devinbarmate: yeah it's right but if u have to declare array with values then it should be like this
devinbarmate: int a[10]={1,2,3,4,5,6,7,8,9,10};
Answered by pmkkav5
0
Before that you have to know what is arry,array is a concept of computer language.u can store the lot of values but that should be same data type.for example you want to store 
the values like 1,2,3,4,5....now u have to create integer array int a[10]
a->its the name of the array
[10]->range of the array.u can store 10 values on this array
  if u want store string values u have to create string array .like string a[10]

these array declarion based on computer langage but almost same

Similar questions