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
what is scupper?
Is string an object in c++?
What are special characters c++?
When we use Abstract Class and when we use Interface?where we will implement in real time?
How are Structure passing and returning implemented by the compiler?
Where the memory to the static variables is allocated?
What is the this pointer?
What is data abstraction? How is it different from data encapsulation?
What is vector string in c++?
What is array in c++ example?
What is static function? Explain with an example
What are the four partitions in which c++ compiler divides the ram?
Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c
What is the difference between C and CPP?
You run a shell on unix system. How would you tell which shell are you running?