program to find a smallest number in an array
Answer Posted / sathish
main()
{
int a[20],n,i,s;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&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 ? | 138 Yes | 57 No |
Post New Answer View All Answers
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What are types of functions?
How can you find the day of the week given the date?
Is calloc better than malloc?
What is indirection? How many levels of pointers can you have?
Describe the steps to insert data into a singly linked list.
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Which header file is used for clrscr?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
How are 16- and 32-bit numbers stored?
What library is sizeof in c?
What is NULL pointer?
Why ca not I do something like this?
What is integer constants?
In C language what is a 'dangling pointer'?