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
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
How to declare a function pointer?
What are the various operations performed on stack?
What is the meaning of string in c++?
What is #include cstdlib in c++?
Why do we use classes in c++?
what are Operators and explain with an example?
Why is c++ still popular?
What is ios :: in in c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Explain the volatile and mutable keywords.
Explain the static member function.
What is string in c++ programming?
What are associate containers?
what is pre-processor in C++?