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


Please Help Members By Posting Answers For Below Questions

How to get string length of given string in c?

611


How is = symbol different from == symbol in c programming?

616


Write a program on swapping (100, 50)

640


Explain what is the concatenation operator?

628


What is meant by keywords in c?

620






Disadvantages of C language.

664


What are conditional operators in C?

630


Is it cc or c in a letter?

570


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

631


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

721


i got 75% in all semester am i eligible for your company

1741


What is data structure in c programming?

576


What is use of null pointer in c?

572


List the different types of c tokens?

629


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

683