Computer Applications
Differentiate between the following:
int a[10] and char a[10]
Java Arrays
14 Likes
Answer
int a[10] is an array of int data type that can hold 10 integer values whereas char a[10] is an array of char data type that can hold 10 characters.
Answered By
7 Likes
Related Questions
Write a program to initialise the given data in an array and find the minimum and maximum values along with the sum of the given elements.
Numbers: 2, 5, 4, 1, 3
Output:
Minimum value: 1
Maximum value: 5
Sum of the elements: 15Differentiate between the following:
Array Declaration and Initialisation
Differentiate between Sorting and Searching
Differentiate between Linear search and Binary search