Answer Posted / amrutha
int a[]=new int[10];
int max=a[0];
for(int i=0; i<10; i++)
{
if(a[i]>max)
{
max=a[i];
}
}
System.out.println("Maximum of 10 :" + max);
| Is This Answer Correct ? | 21 Yes | 8 No |
Post New Answer View All Answers
Explain how we implement exception handling in c++?
What is the difference between a reference and a pointer?
Describe private, protected and public?
Can a new be used in place of old mallocq? If yes, why?
Can we get the value of ios format flags?
What is the type of this pointer in c++?
Explain the difference between overloading and overriding?
What is virtual table?
What's the order in which the objects in an array are destructed?
What is function overloading in C++?
What are the various storage classes in C++?
Can you please explain the difference between overloading and overriding?
What is data types c++?
Carry out conversion of one object of user-defined type to another?
Can comments be longer than one line?