Advertisements
Advertisements
प्रश्न
Some of the code given below contains errors. Identify the error and correct it. Write the output of the correct/corrected code.
int ad[] = {25, 5, 45, 4, 92, 2, 29, 9};
int ap = (ad[0] + ad[7]) /ad[5];
System.out.print(" Result =" + ap);अति संक्षिप्त उत्तर
Advertisements
उत्तर
No Error: Output : Result = 17
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Arrays - One Dimension - Exercises [पृष्ठ १७४]
