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 is void main ()?
Why do we use namespace feature?
Is there a way to jump out of a function or functions?
Why is c so popular?
How many parameters should a function have?
Where in memory are my variables stored?
Between macros and functions,which is better to use and why?
Write a code to generate divisors of an integer?
Explain two-dimensional array.
What is time null in c?
#include
What is the difference between local variable and global variable in c?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is a spanning Tree?
Why can't I perform arithmetic on a void* pointer?