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
How to get string length of given string in c?
How is = symbol different from == symbol in c programming?
Write a program on swapping (100, 50)
Explain what is the concatenation operator?
What is meant by keywords in c?
Disadvantages of C language.
What are conditional operators in C?
Is it cc or c in a letter?
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
#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); }
i got 75% in all semester am i eligible for your company
What is data structure in c programming?
What is use of null pointer in c?
List the different types of c tokens?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers