program to find a smallest number in an array
Answer Posted / atul kumar
#include<iostream.h>
void main()
{
int a, b[4]=[1,2,3,4];
a[0]=b[0];
for(i=1;i<=5;i++)
{
if(a>b[i])
{
a=b[i];
}
}
cout<<"smallest num"<<a;
}
| Is This Answer Correct ? | 7 Yes | 18 No |
Post New Answer View All Answers
Is null equal to 0 in sql?
What are the advantages of using new operator as compared to the function malloc ()?
Can you mix old-style and new-style function syntax?
Why c is called top down?
What is multidimensional arrays
can anyone suggest some site name..where i can get some good data structure puzzles???
Why does this code crash?
a c code by using memory allocation for add ,multiply of sprase matrixes
in iso what are the common technological language?
What is call by reference in functions?
What is the use of a static variable in c?
What are the types of variables in c?
Can you please compare array with pointer?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
how to find binary of number?