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 are oops functions?
What are the 4 pillars of oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is abstract class in oops?
Which language is pure oop?
Can we override main method?
write knight tour problem which is present in datastructure
What is overriding vs overloading?
What is the types of inheritance?
What is abstraction in oops?
What does and I oop mean?
Which language is not a true object oriented programming language?
What is property in oops?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why is polymorphism used?