मराठी

Consider the given array and answer the question given below: int x[ ] {4; 7,9,66,72,0,16); What is the value in x[4] ? - Computer Applications

Advertisements
Advertisements

प्रश्न

Consider the given array and answer the question given below:

int x[ ] {4; 7,9,66,72,0,16);

What is the value in x[4]?

थोडक्यात उत्तर
Advertisements

उत्तर

72

Explanation:

x[4] refers to the value at index 4, which is 72.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2022-2023 (March) Official

APPEARS IN

संबंधित प्रश्‍न

What is the difference between the linear search and the binary search technique?


Write a program to input 15 integer elements in an array and sort them in ascending order using the bubble sort technique. 


Name the following :
(i) A keyword used to call a package in the program.
(ii) Any one reference data type.


Differentiate between searching and sorting.


If int x [ ] = { 4, 3,7, 8, 9,10}; what are the values of p and q ?

(i) p = x.length
(ii) q = x[2] + x[5] * x[1]


Write a program to accept a name and total marks of N number of students in two single subscript array name[] and totalmarks[].

Calculate and print:

  1. The average of the total marks obtained by N Number of students.
    [average = (sum of total marks of all the students)/N]
  2. Deviation of each student’s total marks with the average
    [deviation = total marks of a student – average] 

Find the errors in the given program segment and re-write the statements correctly to assign values to an integer array.
int a = new int (5);
for (int i = 0; i < = 5; i++) a [i] = i;


Consider the given array and answer the question given below:

int x[ ] {4; 7,9,66,72,0,16);

What is the length of the array?


Define a class to accept 10 characters from a user. Using bubble sort technique arrange them in ascending order. Display the sorted array and original array.


Define a class to search for a value input by the user from the list of values given below. If it is found display the message "Search successful", otherwise display the message "Search element not found” using Binary search technique.

5.6, 11.5, 20.8, 43.1, 52.4, 66.6, 78.9, 80.0, 95.5.


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×