Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is null equal to 0 in sql?

1189


What are the advantages of using new operator as compared to the function malloc ()?

1406


Can you mix old-style and new-style function syntax?

1152


Why c is called top down?

1214


What is multidimensional arrays

1174


can anyone suggest some site name..where i can get some good data structure puzzles???

2157


Why does this code crash?

1144


a c code by using memory allocation for add ,multiply of sprase matrixes

2861


in iso what are the common technological language?

2162


What is call by reference in functions?

1536


What is the use of a static variable in c?

1108


What are the types of variables in c?

1079


Can you please compare array with pointer?

1152


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

5696


how to find binary of number?

4534