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
When c language was developed?
What is difference between union and structure in c?
Why we use stdio h in c?
What are high level languages like C and FORTRAN also known as?
Why pointers are used?
How can you be sure that a program follows the ANSI C standard?
Write a program to generate the Fibinocci Series
What is the hardest programming language?
Explain how are 16- and 32-bit numbers stored?
What is the role of this pointer?
Do you know the use of 'auto' keyword?
What are the 4 data types?
What is the c value paradox and how is it explained?
Which is best book for data structures in c?
where are auto variables stored? What are the characteristics of an auto variable?