how to find the largest of given numbers in an array
Answer Posted / jvhariharan
void main()
{
int a[10],i,max,m;
pf("enter the range of array");
sf("%d",&m);
pf("enter the values:");
for(i=0;i<m;i++)
{sf("%d",&a[i]);
}
max=a[0];
for(i=1;i<m;i++)
{if(a[i]>max)
{max=a[i];
}}
pf("the max no:%d",max);
}
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
what type of questions
What is difference between pop and oop?
What is the significance of classes in oop?
What is the real time example of encapsulation?
which feature are not hold visual basic of oop?
Can a varargs method be overloaded?
Can we override main method?
What is polymorphism and its types?
What are the three parts of a simple empty class?
What do you mean by abstraction?
What is class and object with example?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is overriding in oop?
Why do we use oops?
Can an interface inherit a class?