Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to find the largest of given numbers in an array

Answers were Sorted based on User's Feedback



how to find the largest of given numbers in an array..

Answer / 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

how to find the largest of given numbers in an array..

Answer / anmol.s.fattepur

void ANMOL()
{
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 ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is polymorphism and types?

0 Answers  


What is difference between function overloading and overriding?

1 Answers   emc2,


what is the application of oops?

8 Answers   IBM,


How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

0 Answers   IBM,


diff between Virtual mathod and abstract method?

1 Answers  


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


what is cast operator?

2 Answers   Microsoft,


how can we design a magic square in c++?or suggest me the basic idea of it.

3 Answers  


• What are the desirable attributes for memory managment?

0 Answers  


Why is polymorphism used?

0 Answers  


class type to basic type conversion

0 Answers  


Difference between vector and array

2 Answers  


Categories