program to find a smallest number in an array
Answer Posted / belsia
void main()
{
int a[10];
for(i=0;i<10;i++)
scanf("%d",&a[i]);
for(i=0;i<10;i++)
{
if(a[i]>a[i+1])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
printf("The smallest element is %d",a[0]);
getch();
}
| Is This Answer Correct ? | 26 Yes | 28 No |
Post New Answer View All Answers
Write a program to use switch statement.
When should you not use a type cast?
Explain what is the stack?
What are pointers in C? Give an example where to illustrate their significance.
Explain how are portions of a program disabled in demo versions?
What is the maximum no. of arguments that can be given in a command line in C.?
write a program fibonacci series and palindrome program in c
What are unions in c?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Mention four important string handling functions in c languages .
How can I find the modification date and time of a file?
what is event driven software and what is procedural driven software?