answersLogoWhite

0

int findSmallest(int *list, int listsize)

{

int i;

int smallest = list[0];

for(i = 1; i < listsize; i++)

{

if(list[i] < smallest)

smallest = list[i];

}

return smallest;

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How to find the smallest number?

When you are given some numbers just arrange them in ascending order and you will the smallest number which can be made out of those given numbers.


Write a Shell program to find the smallest number from a set of numbers?

k


Shell program to find the smallest digit of a given number?

syntax error


What is the LCM of 15 and what is the meaning of the number?

You need at least two numbers to find an LCM, which is the smallest positive integer that all the members of a given set of numbers will divide into evenly with no remainder.


What are the smallest and biggest numbers you can find for a line of longitude?

The smallest is 0o0'0'' and the largest is 180o0'0''


Find the two smallest numbers whose GCF is 7 and whose LCM is 98?

the two smallest numbers are 49 and 14


Write a java program to find sum of even and odd numbers in given array?

for(int i = 1; i &lt; 100; i+=2) { System.out.println(i); }


How do you write a program to find out the percentage of given numbers using the structure in C?

Count all the given numbers then count all the numbers of a given value. Divide one by the other and multiply by 100. For instance, if there are 50 numbers in total and 5 of them have the value 42, then the percentage of numbers with the value 42 is 5 / 50 * 100 = 10%.


C program to find the largest and smallest character in a word?

helicopter


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


How do you write a c program to find the smallest word in a string?

what is if(!(str[i]==32))


How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?