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

Explain how do you use a pointer to a function?

1056


Explain the properties of union.

1022


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2404


How would you obtain the current time and difference between two times?

1238


What is the collection of communication lines and routers called?

1062


What is enumerated data type in c?

1033


How does placing some code lines between the comment symbol help in debugging the code?

944


How can type-insensitive macros be created?

1131


List out few of the applications that make use of Multilinked Structures?

2115


why return type of main is not necessary in linux

2046


What is #error and use of it?

1201


What is scope of variable in c?

994


What is a function simple definition?

1033


Differentiate Source Codes from Object Codes

1485


How can variables be characterized?

2131