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
Where static variables are stored in memory in c?
What are the rules for identifiers in c?
What is a structural principle?
What is an lvalue?
What is the function of multilevel pointer in c?
What is the modulus operator?
What is null pointer constant?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Explain how do you list files in a directory?
How a string is stored in c?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is an endless loop?
Write a factorial program using C.
Why ca not I do something like this?
Explain what is the difference between #include and #include 'file' ?