write the program for maximum of the following numbers?
122,198,290,71,143,325,98
Answer Posted / akhilesh singh
main()
{
int i,j,temp,a[7]={122,198,290,71,143,325,98};
for(i=0;i<=5;i++)
{
for(j=0;j<=6;j++)
{
if(a[j]<a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
printf("%d",a[0]);
}
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is void c?
Can we increase size of array in c?
what are enumerations in C
Give differences between - new and malloc() , delete and free() ?
What does node * mean?
What is getche() function?
Explain what is meant by high-order and low-order bytes?
What is meant by int main ()?
Is c procedural or functional?
List the variables are used for writing doubly linked list program.
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
How do I swap bytes?
What is an auto keyword in c?
Can math operations be performed on a void pointer?
What is #error and use of it?