program to find a smallest number in an array
Answer Posted / asif ali afsar
#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],b,c,n;
clrscr();
printf("How many size you want to Cheah\n");
scanf("%d",&n);
printf("Enter the numbers\n");
for(b=0; b<n; b++)
{
scanf("%d",&a[b]);
}
for(b=0; b<n; b++)
{
if(c<a[b])
{
c=c;
}
else
{
c=a[b];
}
}
printf("smalest no is %d",c);
getch();
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain how do you list a file’s date and time?
What is file in c preprocessor?
C program to find all possible outcomes of a dice?
What is 1d array in c?
Why double pointer is used in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What are the basic data types associated with c?
How many identifiers are there in c?
What does *p++ do?
When should you use a type cast?
When should you not use a type cast?
What is hash table in c?
Explain the difference between null pointer and void pointer.
Explain zero based addressing.
How can I remove the trailing spaces from a string?