Take BCA Tuition from the Best Tutors
Search in
What is an Array?
An Array contains multiple data of the same data type.
i.e. int ar[5]; means variable ar can contain five values whose data type will be of integer type.
To access the values of the above-initialised array, you need to write like this
ar[0]
ar[1]
ar[2]
ar[3]
ar[4]
Note: index of the array always begins from 0
In general, Array is a collection of values. But having the same data type of benefits is not identical in all languages.
In Java, c, c++ etc languages it is collection of same data types.
In a language like JavaScript, it is not strict about the data type. I mean one array can have numbers, strings, objects in it.
View 11 more Answers
Related Questions
Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com
Ask a QuestionRecommended Articles
6 Exam Hall Tips To Follow, For Every Good Student
Appearing for exams could be stressful for students. Even though they might have prepared well, they could suffer from anxiety, tension etc. These are not good for their health and mind. However, following a few exam preparation tips can save them from all these and help them to score good marks. Let’s find out all...
5 Engaging Activities For Children To Get...
Learning for every child starts from a very young age. While the formal methods include school curriculums and private lessons, the informal methods include dancing, music, drawing, and various fun-filling activities. Playing games and practising these types of activities helps the children get out of boredom and...
Science, Arts Or Commerce - Which One To Go For?
Once over with the tenth board exams, a heavy percentage of students remain confused between the three academic streams they have to choose from - science, arts or commerce. Some are confident enough to take a call on this much in advance. But there is no worry if as a student you take time to make choice between - science,...
6 Healthy Habits of School Children
While schools provide formal education to the children, the home is where they start learning about things informally. Parents think that schools will take the initiative to educate their children. Well, this is partially true, as parents also play an essential role in bringing up their child. For the development of particular...
Looking for BCA Tuition ?
Learn from the Best Tutors on UrbanPro
Are you a Tutor or Training Institute?
Join UrbanPro Today to find students near youThe best tutors for BCA Tuition Classes are on UrbanPro
The best Tutors for BCA Tuition Classes are on UrbanPro