Answer Posted / raj
int a[10],max=0;
cout<<"enter 10 numbers";
for(int i=0;i<10;i++)
{
cin>>a[i];
if(a[i]>max)
max=a[i];
}
cout<<"the maximum of entered 10 is"<<max;
| Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
How static variables and local variablesare similar and dissimilar?
What do you mean by volatile and mutable keywords used in c++?
What are the 2 main types of data structures?
What is an object in c++?
Why should you learn c++?
What are shallow and deep copy?
Explain "const" reference arguments in function?
What you know about structures in C++?
How do we implement inheritance in c++?
Can we distribute function templates and class templates in object libraries?
What jobs can you get with a c++ certification?
What are protected members in c++?
How a new element can be added or pushed in a stack?
Will a catch statement catch a derived exception if it is looking for the base class?
What do you mean by funtion prototype?