how to find the largest of given numbers in an array
Answer Posted / 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 View All Answers
Whats oop mean?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is the significance of classes in oop?
Why do we need oop?
What is abstraction with example?
What polymorphism means?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is coupling in oops?
What is encapsulation example?
Why is abstraction used?
What is the real time example of inheritance?
What is the problem with multiple inheritance?
What is interface? When and where is it used?
hi all..i want to know oops concepts clearly can any1 explain??
How does polymorphism work?