Answer Posted / namitha
#include<iostream.h>
main()
{
int a[10],n;
cout<<"enter ten numbers:\n";
for(int i=0;i<10;i++)
{
cin>>a[i];
}
int max=a[0];
for(i=0;i<10;i++)
{
if(a[i]>max)
max=a[i];
}
cout<<"the maximum number is:"<<max<<endl;
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Define a pointer to a data member of the type pointer to pointer?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What is a lambda function c++?
What are protected members in c++?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What is DlgProc?
Where Malloc(), Calloc(), and realloc() does get memory?
Explain how functions are classified in C++ ?
Give 10 points of differences between C & C++.
What problems might the following macro bring to the application?
What are abstract data types in c++?
Do we have to use initialization list in spite of the assignment in constructors?
What is wrapper class in c++?
What do you understand by a pure virtual member function?
Can we use this pointer inside static member function?