Find out maximum and minimum value from array using function in c programming

preview_player
Показать описание
Find out maximum and minimum value from array by passing array into function in c programming language.
Connect With Me!
Download App : techimage [Google Play]
Call: +91 98290 11904
Рекомендации по теме
Комментарии
Автор

Its my assignment and u did it thanks 😊

mr.error.
Автор

how do I make the for loop exit if the scanf takes a letter? I made it work for my enter function (which you've written as part of your main function):

int check, tmp;

check=scanf("%d", &a[i]); //inside the for loop
if(check==0) //inside the for loop
{
scanf(" %c", &tmp);
break;
}

but how do i make the for loop of the maximum function exit if I press q for example?

bestunaltuni
Автор

Sir, if we have to print position of both what will we do ?

vikramsinghchauhan
Автор

sir we want it to be reverse order also and then max and min

adidamraju
Автор

Thanks sir but there is one thing that i do not understand which is for example;
i[8]=1000 and greater than m;
and
i[9] is = 100 also greater than m;
how could program know the biggest one?

mcanozk
Автор

why use m=32768?
why not any other numbers

zubairzaarif