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 / suse

main()
{
int a[20],n,i,s;
scanf("%d,%d",&n,&a[i]);
s=a[0];
for(i=0;i<n;i++)
{
if(s>a[i])
{
s=a[i];
}
}
printf("the smallest number is %d",s);
}

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When c language was developed?

1056


What is difference between union and structure in c?

1152


Why we use stdio h in c?

1023


What are high level languages like C and FORTRAN also known as?

1166


Why pointers are used?

1072


How can you be sure that a program follows the ANSI C standard?

1596


Write a program to generate the Fibinocci Series

1229


What is the hardest programming language?

1141


Explain how are 16- and 32-bit numbers stored?

1259


What is the role of this pointer?

1064


Do you know the use of 'auto' keyword?

1185


What are the 4 data types?

1009


What is the c value paradox and how is it explained?

1043


Which is best book for data structures in c?

1091


where are auto variables stored? What are the characteristics of an auto variable?

1065