write the program for maximum of the following numbers?
122,198,290,71,143,325,98
Answer Posted / sameer.chaudhari
main()
{
int i,a[7]={122,198,290,71,143,325,98} , max = a[0] ;
for(i = 0 ; i < 7 ; ++i)
if(max < a[i])
max = a[i] ;
printf("%d",max);
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are multibyte characters?
Difference between malloc() and calloc() function?
What is difference between structure and union?
What is the meaning of 2d in c?
What is #error and use of it?
Where is c used?
Explain pointers in c programming?
Why we use void main in c?
Explain how do you override a defined macro?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is the use of clrscr?
how to construct a simulator keeping the logical boolean gates in c
Do you have any idea how to compare array with pointer in c?
What is a structure in c language. how to initialise a structure in c?
How many levels deep can include files be nested?