how to find the largest of given numbers in an array
Answers were Sorted based on User's Feedback
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 |
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 |
i^=j; j^=i; i^=j; value of i,j
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
how many types of notations are in java
1 Answers National University of Modern Languages (NUML),
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
write a program for function overloading?
14 Answers HCL, InfoCity, TATA,
How oops is better than procedural?
features of OOPS
22 Answers Ness Technologies, Satyam,
What is the differances between a abstract calss and interface
What are virtual classes?
A file pointer always contains the __________ of the file
What is object in oops?
What is oop in simple words?